au.edu.jcu.hermes.util
Class ApplicationListenerBeanPostProcessor

java.lang.Object
  extended by au.edu.jcu.hermes.util.ApplicationListenerBeanPostProcessor

public class ApplicationListenerBeanPostProcessor
extends java.lang.Object

BeanPostProcessor which registers ApplicationListeners after Object creation. Is mainly useful when using prototype scoped beans to automatically register them on the ApplicationContext


Constructor Summary
ApplicationListenerBeanPostProcessor()
           
 
Method Summary
 ApplicationEventMulticaster getApplicationEventMulticaster()
           
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)
           
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationListenerBeanPostProcessor

public ApplicationListenerBeanPostProcessor()
Method Detail

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String beanName)
                                                throws BeansException
Throws:
BeansException

getApplicationEventMulticaster

public ApplicationEventMulticaster getApplicationEventMulticaster()

postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws BeansException
Throws:
BeansException

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Throws:
BeansException