Class DefaultEventFactory
- java.lang.Object
-
- org.apache.mina.statemachine.event.DefaultEventFactory
-
- All Implemented Interfaces:
EventFactory
public class DefaultEventFactory extends java.lang.Object implements EventFactory
DefaultEventFactoryimplementation. Uses the method's name as event id.
-
-
Constructor Summary
Constructors Constructor Description DefaultEventFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eventcreate(StateContext context, java.lang.reflect.Method method, java.lang.Object[] arguments)Creates a newEventfrom the specified method and method arguments.
-
-
-
Method Detail
-
create
public Event create(StateContext context, java.lang.reflect.Method method, java.lang.Object[] arguments)
Creates a newEventfrom the specified method and method arguments.- Specified by:
createin interfaceEventFactory- Parameters:
context- the currentStateContext.method- the method being invoked.arguments- the method arguments.- Returns:
- the
Eventobject.
-
-