Class<?> eventType = method.getParameterTypes()[0];
if (listenerAnnotation.asynchronous()){
//TODO just a temporary fake impl
EventHandler handler = new AsynchronousEventHandler(eventType, beanName, method, beanFactory);
//TODO add to some queue
eventPublisher.registerEventHandler(handler);
}
else{
EventHandler handler = new SpringEventHandler(eventType, beanName, method, beanFactory);
eventPublisher.registerEventHandler(handler);
}
}
}
return bean;