@ -61,6 +60,7 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@@ -61,6 +60,7 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@ -69,18 +69,6 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@@ -69,18 +69,6 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@ -91,16 +79,27 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@@ -91,16 +79,27 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
try{
processBean(factories,beanName,type);
}
catch(RuntimeExceptione){
catch(Throwableex){
thrownewBeanInitializationException("Failed to process @EventListener "+
"annotation on bean with name '"+beanName+"'",e);
"annotation on bean with name '"+beanName+"'",ex);
@ -111,13 +110,10 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@@ -111,13 +110,10 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@ -127,49 +123,19 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
@@ -127,49 +123,19 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
}
}
if(annotatedMethods.isEmpty()){
this.nonAnnotatedClasses.add(type);
this.nonAnnotatedClasses.add(targetType);
if(logger.isTraceEnabled()){
logger.trace("No @EventListener annotations found on bean class: "+type);
logger.trace("No @EventListener annotations found on bean class: "+targetType);
}
}
else{
// Non-empty set of methods
if(logger.isDebugEnabled()){
logger.debug(annotatedMethods.size()+" @EventListener methods processed on bean '"+beanName+
"': "+annotatedMethods);
logger.debug(annotatedMethods.size()+" @EventListener methods processed on bean '"+