Class EventType
java.lang.Object
org.springframework.modulith.core.EventType
A type that represents an event in a system.
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EventType
public EventType(com.tngtech.archunit.core.domain.JavaClass type) Creates a newEventTypefor the givenJavaClass.- Parameters:
type- must not be null.
-
-
Method Details
-
getType
public com.tngtech.archunit.core.domain.JavaClass getType()TheJavaClassof theEventType.- Returns:
- will never be null.
-
getSources
The sources that create that event. Includes static factory methods that return an instance of the event type itself as well as constructor invocations, except ones from the factory methods.- Returns:
- will never be null.
-
hasSources
public boolean hasSources()Whether any sources exist at all.- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-