Polishing

This commit is contained in:
Juergen Hoeller
2015-05-07 20:18:17 +02:00
parent e87dc9f82d
commit dbd82d128d
4 changed files with 20 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ public class GenericApplicationListenerAdapter implements GenericApplicationList
private final ResolvableType declaredEventType;
/**
* Create a new GenericApplicationListener for the given delegate.
* @param delegate the delegate listener to be invoked
@@ -87,6 +88,7 @@ public class GenericApplicationListenerAdapter implements GenericApplicationList
return (this.delegate instanceof Ordered ? ((Ordered) this.delegate).getOrder() : Ordered.LOWEST_PRECEDENCE);
}
static ResolvableType resolveDeclaredEventType(Class<?> listenerType) {
ResolvableType resolvableType = ResolvableType.forClass(listenerType).as(ApplicationListener.class);
if (resolvableType == null || !resolvableType.hasGenerics()) {