public class SpringAnnotationOrderResolver extends Object implements OrderResolver
@Order
annotations on the type level. When such
annotation is found, the value provided is used as order.Constructor and Description |
---|
SpringAnnotationOrderResolver() |
public int orderOf(EventListener listener)
OrderResolver
listener
.
Implementations should check whether the listener
implements EventListenerProxy
. In that
case, use EventListenerProxy.getTargetType()
to get access to the actual
type handling the events.orderOf
in interface OrderResolver
listener
- the listener to resolve the order for0
if no specific order is provided.Copyright © 2010-2014. All Rights Reserved.