Class EventFactory



  • public class EventFactory
    extends java.lang.Object
    Simple factory methods for quickly creating Event objects
    • Constructor Summary

      Constructors 
      Constructor and Description
      EventFactory() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Event createEvent(java.lang.String eventName)
      Create an event with no properties
      static Event createEvent(java.lang.String eventName, java.util.Map<java.lang.String,java.lang.Object> properties)
      Create an event with properties
      • Methods inherited from class java.lang.Object

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

      • EventFactory

        public EventFactory()
    • Method Detail

      • createEvent

        public static Event createEvent(java.lang.String eventName,
                                        java.util.Map<java.lang.String,java.lang.Object> properties)
        Create an event with properties
        Parameters:
        eventName - the name of the event
        properties - the properties of the event
        Returns:
        a constructed Event object
      • createEvent

        public static Event createEvent(java.lang.String eventName)
        Create an event with no properties
        Parameters:
        eventName - the name of the event
        Returns:
        a constructed Event object