You should implement ApplicationListener interface and call JavaBean from methods of this interface
You should instantiate custom ApplicationContext with onEvent() method overridden
and call JavaBean from onEvent() method
Implement onEvent() method in the bean and deploy the bean into ApplicationContext
Derive bean class from RequestHandledEvent class and deploy the bean into ApplicationContext
Implement ApplicationListener interface and register it in BeanFactory.
All beans created by this BeanFactory will be notified about ApplicationEvents.
Implement ApplicationListener in the bean and deploy the bean into ApplicationContext
|