@Override
 public Object postProcessAfterInitialization(final Object bean, final String beanName)
     throws BeansException {
   log.trace(Scope.SYSTEM.marker(), "event bus registration of {}({})", beanName, bean.getClass());
   eventBus.register(bean);
   return bean;
 }
Example #2
0
 @Bean
 public TomcatEmbeddedServletContainerFactory tomcatEmbeddedServletContainerFactory() {
   final Connector connector = ajpConnector();
   log.info(
       Scope.SYSTEM.marker(), "adding AJP/1.3 connector listening to {}", connector.getPort());
   final TomcatEmbeddedServletContainerFactory factory =
       new TomcatEmbeddedServletContainerFactory();
   factory.getAdditionalTomcatConnectors().add(connector);
   return factory;
 }