|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MethodInterceptionStrategy> net.sf.tie.ext.rule.MethodInterceptionStrategy
public enum MethodInterceptionStrategy
Describes the strategy for how a given method should be intercepted.
InterceptionRule
Enum Constant Summary | |
---|---|
ALWAYS_INTERCEPT_IMPLEMENTATION_METHOD
Calls to the given method should always be intercepted for this implementation class, but may not be intercepted on other implementations. |
|
ALWAYS_INTERCEPT_INTERFACE_METHOD
Calls to the given method (on the given interface) should always be intercepted, regardless of the implementation class or object. |
|
DONT_INTERCEPT_THIS_CALL
This specific method call should not be intercepted, but other calls to the same method, on the same objects may be. |
|
INTERCEPT_THIS_CALL
This specific method call should be intercepted, but other calls to the same method, on the same objects may not be. |
|
NEVER_INTERCEPT_IMPLEMENTATION_METHOD
Calls to the given method should never be intercepted for this implementation class, but may be intercepted on other implementations. |
|
NEVER_INTERCEPT_INTERFACE_METHOD
Calls to the given method (on the given interface) should never be intercepted, regardless of the implementation class or object. |
Method Summary | |
---|---|
static MethodInterceptionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MethodInterceptionStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MethodInterceptionStrategy NEVER_INTERCEPT_INTERFACE_METHOD
public static final MethodInterceptionStrategy NEVER_INTERCEPT_IMPLEMENTATION_METHOD
public static final MethodInterceptionStrategy ALWAYS_INTERCEPT_INTERFACE_METHOD
public static final MethodInterceptionStrategy ALWAYS_INTERCEPT_IMPLEMENTATION_METHOD
public static final MethodInterceptionStrategy INTERCEPT_THIS_CALL
public static final MethodInterceptionStrategy DONT_INTERCEPT_THIS_CALL
Method Detail |
---|
public static final MethodInterceptionStrategy[] values()
for(MethodInterceptionStrategy c : MethodInterceptionStrategy.values()) System.out.println(c);
public static MethodInterceptionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |