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:
  • EventBusAware
  • Subscribe