Class DefaultEventFactory

  • All Implemented Interfaces:
    EventFactory

    public class DefaultEventFactory
    extends java.lang.Object
    implements EventFactory
    Default EventFactory implementation. Uses the method's name as event id.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultEventFactory

        public DefaultEventFactory()
    • Method Detail

      • create

        public Event create​(StateContext context,
                            java.lang.reflect.Method method,
                            java.lang.Object[] arguments)
        Creates a new Event from the specified method and method arguments.
        Specified by:
        create in interface EventFactory
        Parameters:
        context - the current StateContext.
        method - the method being invoked.
        arguments - the method arguments.
        Returns:
        the Event object.