org.springframework.config.java.listener.aop
Class SpringAdvisorConfigurationListener
java.lang.Object
org.springframework.config.java.listener.ConfigurationListenerSupport
org.springframework.config.java.listener.aop.SpringAdvisorConfigurationListener
- All Implemented Interfaces:
- ConfigurationListener
public class SpringAdvisorConfigurationListener
- extends ConfigurationListenerSupport
Configuration listener to process Spring Advisors, which must be beans. This
does not involve the use of the AspectJ pointcut language.
- Author:
- Rod Johnson
Method Summary |
int |
beanCreationMethod(ConfigurationListener.BeanDefinitionRegistration beanDefinitionRegistration,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class configurerClass,
java.lang.reflect.Method m,
Bean beanAnnotation)
React to the BeanDefinition and possibly customize it or change its name |
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 |
SpringAdvisorConfigurationListener
public SpringAdvisorConfigurationListener()
beanCreationMethod
public int beanCreationMethod(ConfigurationListener.BeanDefinitionRegistration beanDefinitionRegistration,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
org.springframework.beans.factory.support.DefaultListableBeanFactory childBeanFactory,
java.lang.String configurerBeanName,
java.lang.Class configurerClass,
java.lang.reflect.Method m,
Bean beanAnnotation)
- Description copied from interface:
ConfigurationListener
- React to the BeanDefinition and possibly customize it or change its name
- Specified by:
beanCreationMethod
in interface ConfigurationListener
- Overrides:
beanCreationMethod
in class ConfigurationListenerSupport
- Parameters:
beanDefinitionRegistration
- bean definition registration
informationbeanFactory
- factory owning the configuration class. This method
will be called before beans are instantiated, so other objects may not be
available.childBeanFactory
- child bean factory available for internal use,
such as for registering infrastructural beansconfigurerBeanName
- bean name of the configurer classconfigurerClass
- configurer classm
- configuration methodbeanAnnotation
- bean annotation on the configuration method, which
will not be null.
- Returns:
- number of additional bean definitions created for the existing one. The value should be different from zero if wrapping bean definitions
are created besides the normal @Bean discovery process
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.