Package org.apache.shiro.spring
Class ShiroEventBusBeanPostProcessor
java.lang.Object
org.apache.shiro.spring.ShiroEventBusBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class ShiroEventBusBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.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
public ShiroEventBusBeanPostProcessor(org.apache.shiro.event.EventBus eventBus)
-
-
Method Details
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-