org.loom.interceptor
Class MethodInterceptor

java.lang.Object
  extended by org.loom.interceptor.MethodInterceptor
All Implemented Interfaces:
Interceptor
Direct Known Subclasses:
MethodInterceptor.AfterCreate, MethodInterceptor.BeforeExecute, MethodInterceptor.BeforePopulate, MethodInterceptor.BeforeValidate, MethodInterceptor.DoFinally, MethodInterceptor.OnError

public abstract class MethodInterceptor
extends java.lang.Object
implements Interceptor

Interceptor that calls an action's listener method.


Nested Class Summary
static class MethodInterceptor.AfterCreate
           
static class MethodInterceptor.BeforeExecute
           
static class MethodInterceptor.BeforePopulate
           
static class MethodInterceptor.BeforeValidate
           
static class MethodInterceptor.DoFinally
           
static class MethodInterceptor.OnError
           
 
Constructor Summary
MethodInterceptor()
           
 
Method Summary
static
<T extends MethodInterceptor>
T
getInstance(java.lang.Class<T> clazz, java.lang.reflect.Method method)
           
protected  Resolution invoke(ParsedAction action, java.lang.Object... args)
           
 void setMethod(java.lang.reflect.Method method)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInterceptor

public MethodInterceptor()
Method Detail

getInstance

public static <T extends MethodInterceptor> T getInstance(java.lang.Class<T> clazz,
                                                          java.lang.reflect.Method method)
Returns:
a MethodInterceptor

setMethod

public void setMethod(java.lang.reflect.Method method)

invoke

protected Resolution invoke(ParsedAction action,
                            java.lang.Object... args)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object