com.hammurapi.eventbus
Class ReflectiveEventHandlerFactory<E,C,H extends EventBus.Handle<E,Integer,C>,S extends EventStore<E,Integer,C,H,S>>
java.lang.Object
com.hammurapi.eventbus.IntrospectorBase<E,C>
com.hammurapi.eventbus.ReflectiveEventHandlerFactory<E,C,H,S>
- Type Parameters:
E - C -
- Direct Known Subclasses:
- Introspector
public class ReflectiveEventHandlerFactory<E,C,H extends EventBus.Handle<E,Integer,C>,S extends EventStore<E,Integer,C,H,S>>
- extends IntrospectorBase<E,C>
This class adds a single method to the base class - it creates predicate/handler pairs from
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectiveEventHandlerFactory
protected ReflectiveEventHandlerFactory(ClassLoader classLoader,
TokenExpander tokenExpander)
createHandlers
public Collection<ReflectiveEventHandler<E,C,H,S>> createHandlers(C instance,
Class<E> eventType)
- Introspects class and creates predicate/handler pairs.
- Parameters:
handlerClass - eventType -
- Returns: