net.sf.tie.ext.rule
Enum ObjectInterceptionStrategy

java.lang.Object
  extended by java.lang.Enum<ObjectInterceptionStrategy>
      extended by net.sf.tie.ext.rule.ObjectInterceptionStrategy
All Implemented Interfaces:
Serializable, Comparable<ObjectInterceptionStrategy>

public enum ObjectInterceptionStrategy
extends Enum<ObjectInterceptionStrategy>

Describes the strategy for how a given object should be intercepted.

See Also:
InterceptionRule

Enum Constant Summary
ALWAYS_INTERCEPT_IMPLEMENTATION_CLASS
          Methods on the given implementation should always be intercepted, but other implementations of the same interface may not be.
ALWAYS_INTERCEPT_INTERFACE
          Methods on the given interface should always be intercepted, regardless of the implementation class or object.
ALWAYS_INTERCEPT_OBJECT
          Methods on the given instance should always be intercepted, but other instances of the same class may not be.
INTERCEPT_SOME_METHODS_ON_IMPLEMENTATON
          Some methods on the implementation class should be intercepted - consult the MethodInterceptionStrategy for each method.
INTERCEPT_SOME_METHODS_ON_INTERFACE
          Some methods on the given interface should be intercepted - consult the MethodInterceptionStrategy for each method.
INTERCEPT_SOME_METHODS_ON_OBJECT
          Some methods on the specific instance should be intercepted - consult the MethodInterceptionStrategy for each method.
NEVER_INTERCEPT_IMPLEMENTATION_CLASS
          Methods on the given implementation should never be intercepted, but other implementations of the same interface may be.
NEVER_INTERCEPT_INTERFACE
          Methods on the given interface should never be intercepted, regardless of the implementation class or object.
NEVER_INTERCEPT_OBJECT
          Methods on the given instance should never be intercepted, but other instances of the same class may be.
 
Method Summary
static ObjectInterceptionStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObjectInterceptionStrategy[] 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

NEVER_INTERCEPT_INTERFACE

public static final ObjectInterceptionStrategy NEVER_INTERCEPT_INTERFACE
Methods on the given interface should never be intercepted, regardless of the implementation class or object.


NEVER_INTERCEPT_IMPLEMENTATION_CLASS

public static final ObjectInterceptionStrategy NEVER_INTERCEPT_IMPLEMENTATION_CLASS
Methods on the given implementation should never be intercepted, but other implementations of the same interface may be.


NEVER_INTERCEPT_OBJECT

public static final ObjectInterceptionStrategy NEVER_INTERCEPT_OBJECT
Methods on the given instance should never be intercepted, but other instances of the same class may be.


ALWAYS_INTERCEPT_INTERFACE

public static final ObjectInterceptionStrategy ALWAYS_INTERCEPT_INTERFACE
Methods on the given interface should always be intercepted, regardless of the implementation class or object.


ALWAYS_INTERCEPT_IMPLEMENTATION_CLASS

public static final ObjectInterceptionStrategy ALWAYS_INTERCEPT_IMPLEMENTATION_CLASS
Methods on the given implementation should always be intercepted, but other implementations of the same interface may not be.


ALWAYS_INTERCEPT_OBJECT

public static final ObjectInterceptionStrategy ALWAYS_INTERCEPT_OBJECT
Methods on the given instance should always be intercepted, but other instances of the same class may not be.


INTERCEPT_SOME_METHODS_ON_INTERFACE

public static final ObjectInterceptionStrategy INTERCEPT_SOME_METHODS_ON_INTERFACE
Some methods on the given interface should be intercepted - consult the MethodInterceptionStrategy for each method.


INTERCEPT_SOME_METHODS_ON_IMPLEMENTATON

public static final ObjectInterceptionStrategy INTERCEPT_SOME_METHODS_ON_IMPLEMENTATON
Some methods on the implementation class should be intercepted - consult the MethodInterceptionStrategy for each method.


INTERCEPT_SOME_METHODS_ON_OBJECT

public static final ObjectInterceptionStrategy INTERCEPT_SOME_METHODS_ON_OBJECT
Some methods on the specific instance should be intercepted - consult the MethodInterceptionStrategy for each method.

Method Detail

values

public static final ObjectInterceptionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ObjectInterceptionStrategy c : ObjectInterceptionStrategy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ObjectInterceptionStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name