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
ConstructorDescriptionReflectEventRoutingSelector
(Class eventClass, Object consumer, Method method) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 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 collectionint
hashCode()
-
Constructor Details
-
ReflectEventRoutingSelector
-
-
Method Details
-
equals
-
getEventClass
Description copied from interface:EventRoutingSelector
Returns class of event for which it modifies delivery- Specified by:
getEventClass
in interfaceEventRoutingSelector
-
getSubscriptions
public Collection<Subscription> getSubscriptions(Object event, Collection<Subscription> subscriptions) Description copied from interface:EventRoutingSelector
Method responsible for actual modification of delivery by adding and removing items to Subscriptions collection- Specified by:
getSubscriptions
in interfaceEventRoutingSelector
- Parameters:
event
- instance of eventsubscriptions
- original list of subscriptions
-
hashCode
public int hashCode()
-