|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.interceptors.aop.LifecycleCallbackInterceptorMethodLazyInterceptor
public class LifecycleCallbackInterceptorMethodLazyInterceptor

LifecycleCallbackInterceptorMethodLazyInterceptor
An AOP interceptor wrapper for lifecycle callback methods on (javax.interceptor.Interceptors)
interceptor classes. Unlike the LifecycleCallbackInterceptorMethodInterceptor AOP interceptor,
this class does *not* require a interceptor class instance while creating this interceptor. Instead
the interceptor instance is obtained through the Invocation when the Interceptor.invoke(Invocation)
method is invoked
invoke(Invocation)| Constructor Summary | |
|---|---|
LifecycleCallbackInterceptorMethodLazyInterceptor(java.lang.Class<?> interceptorClass,
java.lang.reflect.Method lifecycleCallbackMethod)
Creates a LifecycleCallbackInterceptorMethodLazyInterceptor based on the
interceptor class and the interceptor method. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getInterceptorInstance(org.jboss.aop.joinpoint.Invocation invocation)
Returns the lifecycle callback interceptor instance, from the invocation, if available. |
java.lang.String |
getName()
|
java.lang.Object |
invoke(org.jboss.aop.joinpoint.Invocation invocation)
Invokes the lifecycle callback method on the interceptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleCallbackInterceptorMethodLazyInterceptor(java.lang.Class<?> interceptorClass,
java.lang.reflect.Method lifecycleCallbackMethod)
LifecycleCallbackInterceptorMethodLazyInterceptor based on the
interceptor class and the interceptor method.
The interceptor instance, corresponding to the interceptorClass
will be obtained through the Invocation (if it's available), when this interceptor is invoked.
interceptorClass - The interceptor classlifecycleCallbackMethod - The interceptor methodgetInterceptorInstance(Invocation)| Method Detail |
|---|
public java.lang.String getName()
getName in interface org.jboss.aop.advice.InterceptorInterceptor.getName()
public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
invocation, if available
invoke in interface org.jboss.aop.advice.Interceptorjava.lang.ThrowablegetInterceptorInstance(Invocation)protected java.lang.Object getInterceptorInstance(org.jboss.aop.joinpoint.Invocation invocation)
invocation, if available.
invocation - AOP invocation
java.lang.IllegalStateException - if the interceptor instance cannot be
obtained through invocation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||