Also: SpringCore
public interface

ControlFlow

org.springframework.core.ControlFlow

Class Overview

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.

Summary

Public Methods
abstract boolean under(Class clazz)
Detect whether we're under the given class, according to the current stack trace.
abstract boolean under(Class clazz, String methodName)
Detect whether we're under the given class and method, according to the current stack trace.
abstract boolean underToken(String token)
Detect whether the current stack trace contains the given token.

Public Methods

public abstract boolean under (Class clazz)

Also: SpringCore

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

Parameters
clazz the clazz to look for

public abstract boolean under (Class clazz, String methodName)

Also: SpringCore

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

public abstract boolean underToken (String token)

Also: SpringCore

Detect whether the current stack trace contains the given token.

Parameters
token the token to look for