Class ShiroEventBusBeanPostProcessor
java.lang.Object
org.apache.shiro.spring.ShiroEventBusBeanPostProcessor
- All Implemented Interfaces:
BeanPostProcessor
Spring
BeanPostProcessor that detects, EventBusAware and classes containing
@Subscribe methods. Any classes implementing EventBusAware will have the setEventBus() method
called with the eventBus. Any classes discovered with methods that are annotated
with @Subscribe will be automatically registered with the EventBus.
NOTE: in a Spring environment implementing EventBusAware is not necessary,
as you can just inject the EventBus with @Autowire.
- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization(Object bean, String beanName) postProcessBeforeInitialization(Object bean, String beanName)
-
Constructor Details
-
ShiroEventBusBeanPostProcessor
-
-
Method Details
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-