org.springframework.aop.framework.adapter
Class AdvisorAdapterRegistrationManager

java.lang.Object
  extended byorg.springframework.aop.framework.adapter.AdvisorAdapterRegistrationManager
All Implemented Interfaces:
BeanPostProcessor

public class AdvisorAdapterRegistrationManager
extends java.lang.Object
implements BeanPostProcessor

BeanPostProcessor implementation that "registers" instances of any non-default AdvisorAdapters with GlobalAdvisorAdapterRegistry.

The only requirement for it to work is that it needs to be defined in application context along with any arbitrary "non-native" Spring AdvisorAdapters that need to be "recognized" by SpringAOP module.

Version:
$Id: AdvisorAdapterRegistrationManager.java,v 1.2 2004/03/18 02:46:09 trisberg Exp $
Author:
Dmitriy Kopylenko

Constructor Summary
AdvisorAdapterRegistrationManager()
           
 
Method Summary
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String name)
          Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method).
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String name)
          Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvisorAdapterRegistrationManager

public AdvisorAdapterRegistrationManager()
Method Detail

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String name)
                                                 throws BeansException
Description copied from interface: BeanPostProcessor
Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original.

Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
Parameters:
bean - the new bean instance
name - the name of the bean
Returns:
the bean instance to use, either the original or a wrapped one
Throws:
BeansException - in case of errors
See Also:
BeanPostProcessor.postProcessBeforeInitialization(java.lang.Object, java.lang.String)

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String name)
                                                throws BeansException
Description copied from interface: BeanPostProcessor
Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks (like InitializingBean's afterPropertiesSet or a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original.

Specified by:
postProcessAfterInitialization in interface BeanPostProcessor
Parameters:
bean - the new bean instance
name - the name of the bean
Returns:
the bean instance to use, either the original or a wrapped one
Throws:
BeansException - in case of errors
See Also:
BeanPostProcessor.postProcessAfterInitialization(java.lang.Object, java.lang.String)


Copyright (C) 2003-2004 The Spring Framework Project.