public class EventDispatcherInitializer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
EventDispatcherInitializer.MethodCallback |
| Constructor and Description |
|---|
EventDispatcherInitializer(EventHandlerProcessor[] processors,
EventuateAggregateStore aggregateStore,
Executor executorService,
SubscriptionsRegistry subscriptionsRegistry) |
| Modifier and Type | Method and Description |
|---|---|
static void |
doWithMethods(Class<?> clazz,
EventDispatcherInitializer.MethodCallback mc)
Perform the given callback operation on all matching methods of the given
class and superclasses (or given interface and super-interfaces).
|
static Method[] |
getUniqueDeclaredMethods(Class<?> leafClass)
Get the unique set of declared methods on the leaf class and all superclasses.
|
void |
registerEventHandler(Object eventHandlerBean,
String beanName) |
public EventDispatcherInitializer(EventHandlerProcessor[] processors, EventuateAggregateStore aggregateStore, Executor executorService, SubscriptionsRegistry subscriptionsRegistry)
public static void doWithMethods(Class<?> clazz, EventDispatcherInitializer.MethodCallback mc)
The same named method occurring on subclass and superclass will appear twice.
clazz - the class to introspectmc - the callback to invoke for each methodIllegalStateException - if introspection failspublic static Method[] getUniqueDeclaredMethods(Class<?> leafClass)
leafClass - the class to introspectIllegalStateException - if introspection failspublic void registerEventHandler(Object eventHandlerBean, String beanName) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2019. All rights reserved.