Code example for EventBus

Methods: register

0
		try { 
			if (eventBus == null) {
				eventBus = beanFactory.getBean(EventBus.class);
			} 
			log.trace("registering potential event bus subscriber: {}", beanName); //$NON-NLS-1$
			eventBus.register(bean);
		} catch (BeanCurrentlyInCreationException e) {
			// ignore beans that are currently in creation (ie. context config) 
		} 
		return bean; 
	} 
 
	@Override 
	public Object postProcessAfterInitialization(Object bean, String beanName) {
		return bean; 
	} 
 
	@Override 
	public void postProcessBeforeDestruction(Object bean, String beanName) {
		if (eventBus != null) {