Class EventType
- java.lang.Object
-
- de.quantummaid.eventmaid.processingContext.EventType
-
public final class EventType extends Object
AnEventTypeis a representation of a communication on aMessageBus. All messages with the sameEventTypebelong the communication.Subscriberscan listen on aEventTypeto recieve all relevant messages.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description EventType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventTypeeventTypeFromClass(Class<?> aClass)Creates a newEventTypefrom the canonical name of theClass.static EventTypeeventTypeFromObjectClass(Object object)Creates a newEventTypefrom the canonical name of the object'sClass.static EventTypeeventTypeFromString(String value)Creates a newEventTypefrom the given string.StringstringValue()Returns a string representation for theEventType.
-
-
-
Method Detail
-
eventTypeFromString
public static EventType eventTypeFromString(String value)
Creates a newEventTypefrom the given string.- Parameters:
value- the string representing theEventType- Returns:
- the newly created
EventType
-
eventTypeFromClass
public static EventType eventTypeFromClass(Class<?> aClass)
Creates a newEventTypefrom the canonical name of theClass.- Parameters:
aClass- theClassto use the canonical name asEventType- Returns:
- the newly created
EventType
-
eventTypeFromObjectClass
public static EventType eventTypeFromObjectClass(Object object)
Creates a newEventTypefrom the canonical name of the object'sClass.- Parameters:
object- the object, from which to use the canonicalClass'name asEventType- Returns:
- the newly created
EventType
-
stringValue
public String stringValue()
Returns a string representation for theEventType.- Returns:
- the
EventType'sstring representation
-
-