public class DefaultEventFactory extends java.lang.Object implements EventFactory
EventFactory implementation. Uses the method's name as
event id.| Constructor and Description |
|---|
DefaultEventFactory() |
| Modifier and Type | Method and Description |
|---|---|
Event |
create(StateContext context,
java.lang.reflect.Method method,
java.lang.Object[] arguments)
Creates a new
Event from the specified method and method
arguments. |
public Event create(StateContext context, java.lang.reflect.Method method, java.lang.Object[] arguments)
EventFactoryEvent from the specified method and method
arguments.create in interface EventFactorycontext - the current StateContext.method - the method being invoked.arguments - the method arguments.Event object.