Package tigase.eventbus.impl
Class ReflectEventRoutingSelector
- java.lang.Object
-
- tigase.eventbus.impl.ReflectEventRoutingSelector
-
- All Implemented Interfaces:
EventRoutingSelector
public class ReflectEventRoutingSelector extends Object implements EventRoutingSelector
This class is implementation ofEventRoutingSelectorused when this selector is created based on annotated method of consumer class.- Author:
- andrzej
-
-
Constructor Summary
Constructors Constructor Description ReflectEventRoutingSelector(Class eventClass, Object consumer, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ClassgetEventClass()Returns class of event for which it modifies deliveryCollection<Subscription>getSubscriptions(Object event, Collection<Subscription> subscriptions)Method responsible for actual modification of delivery by adding and removing items to Subscriptions collectioninthashCode()
-
-
-
Method Detail
-
getEventClass
public Class 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
-
-