com.liferay.portal.spring.aop
Class ChainableMethodAdvice

java.lang.Object
  extended by com.liferay.portal.spring.aop.ChainableMethodAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Direct Known Subclasses:
AnnotationChainableMethodAdvice, ServiceMonitorAdvice

public abstract class ChainableMethodAdvice
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

View Source

Author:
Shuyang Zhou, Brian Wing Shun Chan

Field Summary
protected  org.aopalliance.intercept.MethodInterceptor nextMethodInterceptor
           
protected  java.lang.Object nullResult
           
 
Constructor Summary
ChainableMethodAdvice()
           
 
Method Summary
 void afterReturning(org.aopalliance.intercept.MethodInvocation methodInvocation, java.lang.Object result)
           
 void afterThrowing(org.aopalliance.intercept.MethodInvocation methodInvocation, java.lang.Throwable throwable)
           
 java.lang.Object before(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void duringFinally(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void setNextMethodInterceptor(org.aopalliance.intercept.MethodInterceptor nextMethodInterceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextMethodInterceptor

protected org.aopalliance.intercept.MethodInterceptor nextMethodInterceptor

nullResult

protected java.lang.Object nullResult
Constructor Detail

ChainableMethodAdvice

public ChainableMethodAdvice()
Method Detail

afterReturning

public void afterReturning(org.aopalliance.intercept.MethodInvocation methodInvocation,
                           java.lang.Object result)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable

afterThrowing

public void afterThrowing(org.aopalliance.intercept.MethodInvocation methodInvocation,
                          java.lang.Throwable throwable)
                   throws java.lang.Throwable
Throws:
java.lang.Throwable

before

public java.lang.Object before(org.aopalliance.intercept.MethodInvocation methodInvocation)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

duringFinally

public void duringFinally(org.aopalliance.intercept.MethodInvocation methodInvocation)

invoke

public final java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
                              throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable

setNextMethodInterceptor

public void setNextMethodInterceptor(org.aopalliance.intercept.MethodInterceptor nextMethodInterceptor)