public class ShiroEventBusBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
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 automaticly registered with the EventBus.
NOTE: in a Spring environment implementing EventBusAware is not necessary, as you can just inject the EventBus with
@Autowire.
EventBusAware,
Subscribe| Constructor and Description |
|---|
ShiroEventBusBeanPostProcessor(org.apache.shiro.event.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
public ShiroEventBusBeanPostProcessor(org.apache.shiro.event.EventBus eventBus)
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.