public class DefaultEventFactory extends java.lang.Object implements EventFactory
EventFactory
implementation. Uses the method's name as
event id.构造器和说明 |
---|
DefaultEventFactory() |
限定符和类型 | 方法和说明 |
---|---|
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)
EventFactory
Event
from the specified method and method
arguments.create
在接口中 EventFactory
context
- the current StateContext
.method
- the method being invoked.arguments
- the method arguments.Event
object.