Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.core
Interface ControlFlow

    public interface ControlFlow

Interface to be implemented by objects that can return information about the current call stack. Useful in AOP (as in AspectJ cflow concept) but not AOP-specific.

Since:
  02.02.2004
Author:
  Rod Johnson

Method Summary
`boolean` | `under(java.lang.Class clazz)` Detect whether we're under the given class, according to the current stack trace.
`boolean` | `under(java.lang.Class clazz, java.lang.String methodName)` Detect whether we're under the given class and method, according to the current stack trace.
`boolean` | `underToken(java.lang.String token)` Detect whether the current stack trace contains the given token.

Method Detail

### under

    boolean under(java.lang.Class clazz)

  Detect whether we're under the given class, according to the current stack trace.

  Parameters:
    `clazz` - the clazz to look for

### under

    boolean under(java.lang.Class clazz,
                  java.lang.String methodName)

  Detect whether we're under the given class and method, according to the current stack trace.

  Parameters:
    `clazz` - the clazz to look for
    `methodName` - the name of the method to look for

### underToken

    boolean underToken(java.lang.String token)

  Detect whether the current stack trace contains the given token.

  Parameters:
    `token` - the token to look for

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD