Package tigase.eventbus.impl
Class ReflectEventRoutingSelector
java.lang.Object
tigase.eventbus.impl.ReflectEventRoutingSelector
- All Implemented Interfaces:
EventRoutingSelector
This class is implementation of
EventRoutingSelector used when this selector is created based on
annotated method of consumer class.- Author:
- andrzej
-
Constructor Summary
ConstructorsConstructorDescriptionReflectEventRoutingSelector(Class eventClass, Object consumer, Method method) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns class of event for which it modifies deliverygetSubscriptions(Object event, Collection<Subscription> subscriptions) Method responsible for actual modification of delivery by adding and removing items to Subscriptions collectioninthashCode()
-
Constructor Details
-
ReflectEventRoutingSelector
-
-
Method Details
-
equals
-
getEventClass
Description copied from interface:EventRoutingSelectorReturns class of event for which it modifies delivery- Specified by:
getEventClassin interfaceEventRoutingSelector
-
getSubscriptions
public Collection<Subscription> getSubscriptions(Object event, Collection<Subscription> subscriptions) Description copied from interface:EventRoutingSelectorMethod responsible for actual modification of delivery by adding and removing items to Subscriptions collection- Specified by:
getSubscriptionsin interfaceEventRoutingSelector- Parameters:
event- instance of eventsubscriptions- original list of subscriptions
-
hashCode
public int hashCode()
-