com.atlassian.confluence.spring.aop
Class AdviseReturnedValueAdvice

java.lang.Object
  extended by com.atlassian.confluence.spring.aop.AdviseReturnedValueAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public final class AdviseReturnedValueAdvice
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

Simple AOP advice for adding advice to the returned value of advised methods


Constructor Summary
AdviseReturnedValueAdvice()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 void setAdvisor(org.springframework.aop.Advisor advisor)
          Deprecated. since 5.6 Use setReturnValueAdvisor(org.springframework.aop.Advisor)
 void setInvokedMethodMatcher(org.springframework.aop.MethodMatcher invokedMethodMatcher)
           
 void setProxyInterface(java.lang.Class proxyInterface)
           
 void setReturnValueAdvisor(org.springframework.aop.Advisor returnValueAdvisor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdviseReturnedValueAdvice

public AdviseReturnedValueAdvice()
Method Detail

setAdvisor

@Deprecated
public void setAdvisor(org.springframework.aop.Advisor advisor)
Deprecated. since 5.6 Use setReturnValueAdvisor(org.springframework.aop.Advisor)

Parameters:
advisor - Advisor for returned value

setInvokedMethodMatcher

public void setInvokedMethodMatcher(org.springframework.aop.MethodMatcher invokedMethodMatcher)
Parameters:
invokedMethodMatcher - specifies which methods on the target object should have their return value advised

setReturnValueAdvisor

public void setReturnValueAdvisor(org.springframework.aop.Advisor returnValueAdvisor)
Parameters:
advisor - Advisor for returned value

setProxyInterface

public void setProxyInterface(java.lang.Class proxyInterface)
Parameters:
proxyInterface - Interface to advise on returned value

invoke

public 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


Copyright © 2003-2014 Atlassian. All Rights Reserved.