org.springframework.config.java.listener.aop
Class AbstractAopConfigurationListener
java.lang.Object
org.springframework.config.java.listener.ConfigurationListenerSupport
org.springframework.config.java.listener.aop.AbstractAopConfigurationListener
- All Implemented Interfaces:
- ConfigurationListener
- Direct Known Subclasses:
- AspectJAdviceConfigurationListener, SpringAdviceConfigurationListener
public abstract class AbstractAopConfigurationListener
- extends ConfigurationListenerSupport
ConfigurationMethodListener that saves up pointcuts, adding advices if
necessary to a ProxyFactory.
- Author:
- Rod Johnson
Method Summary |
protected void |
addAdvice(java.lang.String adviceName,
org.springframework.aop.Pointcut pc,
org.aopalliance.aop.Advice advice,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory)
|
protected void |
addAdvice(java.lang.String adviceName,
org.springframework.aop.Pointcut pc,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory)
Add an advice with the given pointcut |
boolean |
processBeanMethodReturnValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childFactory,
java.lang.Object originallyCreatedBean,
java.lang.reflect.Method method,
org.springframework.aop.framework.ProxyFactory pf)
Help to process the return value of a bean definition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAopConfigurationListener
public AbstractAopConfigurationListener()
addAdvice
protected void addAdvice(java.lang.String adviceName,
org.springframework.aop.Pointcut pc,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory)
- Add an advice with the given pointcut
- Parameters:
adviceName
- bean name of the advice in the child factorypc
- pointcutchildBeanFactory
- child factory
addAdvice
protected void addAdvice(java.lang.String adviceName,
org.springframework.aop.Pointcut pc,
org.aopalliance.aop.Advice advice,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory)
processBeanMethodReturnValue
public boolean processBeanMethodReturnValue(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childFactory,
java.lang.Object originallyCreatedBean,
java.lang.reflect.Method method,
org.springframework.aop.framework.ProxyFactory pf)
- Description copied from interface:
ConfigurationListener
- Help to process the return value of a bean definition.
- Specified by:
processBeanMethodReturnValue
in interface ConfigurationListener
- Overrides:
processBeanMethodReturnValue
in class ConfigurationListenerSupport
pf
- simply don't modify it if necessary
- Returns:
- whether or not the proxy was changed. If all listeners return
false, the return value may not need to be proxied.
Copyright © 2005-2007 Spring Framework. All Rights Reserved.