Class EventType


  • public final class EventType
    extends Object
    An EventType is a representation of a communication on a MessageBus. All messages with the same EventType belong the communication. Subscribers can listen on a EventType to recieve all relevant messages.
    See Also:
    EventMaid Documentation
    • Constructor Detail

      • EventType

        public EventType()
    • Method Detail

      • eventTypeFromString

        public static EventType eventTypeFromString​(String value)
        Creates a new EventType from the given string.
        Parameters:
        value - the string representing the EventType
        Returns:
        the newly created EventType
      • eventTypeFromClass

        public static EventType eventTypeFromClass​(Class<?> aClass)
        Creates a new EventType from the canonical name of the Class.
        Parameters:
        aClass - the Class to use the canonical name as EventType
        Returns:
        the newly created EventType
      • eventTypeFromObjectClass

        public static EventType eventTypeFromObjectClass​(Object object)
        Creates a new EventType from the canonical name of the object's Class.
        Parameters:
        object - the object, from which to use the canonical Class' name as EventType
        Returns:
        the newly created EventType
      • stringValue

        public String stringValue()
        Returns a string representation for the EventType.
        Returns:
        the EventType's string representation