站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

ControlFlowFactory.Jdk14ControlFlow (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core
Class ControlFlowFactory.Jdk14ControlFlow

java.lang.Object
  extended by org.springframework.core.ControlFlowFactory.Jdk14ControlFlow
All Implemented Interfaces:
ControlFlow
Enclosing class:
ControlFlowFactory

static class ControlFlowFactory.Jdk14ControlFlow
extends Object
implements ControlFlow

Utilities for cflow-style pointcuts. Note that such pointcuts are 5-10 times more expensive to evaluate than other pointcuts, as they require analysis of the stack trace (through constructing a new throwable). However, they are useful in some cases.

This implementation uses the StackTraceElement class introduced in Java 1.4.

See Also:
StackTraceElement

Constructor Summary
ControlFlowFactory.Jdk14ControlFlow()
           
 
Method Summary
 String toString()
           
 boolean under(Class clazz)
          Searches for class name match in a StackTraceElement.
 boolean under(Class clazz, String methodName)
          Searches for class name match plus method name match in a StackTraceElement.
 boolean underToken(String token)
          Leave it up to the caller to decide what matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlFlowFactory.Jdk14ControlFlow

public ControlFlowFactory.Jdk14ControlFlow()
Method Detail

under

public boolean under(Class clazz)
Searches for class name match in a StackTraceElement.

Specified by:
under in interface ControlFlow
Parameters:
clazz - the clazz to look for

under

public boolean under(Class clazz,
                     String methodName)
Searches for class name match plus method name match in a StackTraceElement.

Specified by:
under in interface ControlFlow
Parameters:
clazz - the clazz to look for
methodName - the name of the method to look for

underToken

public boolean underToken(String token)
Leave it up to the caller to decide what matches. Caller must understand stack trace format, so there's less abstraction.

Specified by:
underToken in interface ControlFlow
Parameters:
token - the token to look for

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2002-2007 The Spring Framework Project.