org.springframework.config.java.listener.aop
Class AbstractAopConfigurationListener

java.lang.Object
  extended by org.springframework.config.java.listener.ConfigurationListenerSupport
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.config.java.listener.ConfigurationListener
ConfigurationListener.BeanDefinitionRegistration
 
Field Summary
 
Fields inherited from class org.springframework.config.java.listener.ConfigurationListenerSupport
log
 
Constructor Summary
AbstractAopConfigurationListener()
           
 
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 org.springframework.config.java.listener.ConfigurationListenerSupport
beanCreationMethod, configurationClass, otherMethod, understands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAopConfigurationListener

public AbstractAopConfigurationListener()
Method Detail

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 factory
pc - pointcut
childBeanFactory - 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.