Class EventType

java.lang.Object
org.springframework.modulith.core.EventType

public class EventType extends Object
A type that represents an event in a system.
Author:
Oliver Drotbohm
  • Constructor Details

    • EventType

      public EventType(com.tngtech.archunit.core.domain.JavaClass type)
      Creates a new EventType for the given JavaClass.
      Parameters:
      type - must not be null.
  • Method Details

    • getType

      public com.tngtech.archunit.core.domain.JavaClass getType()
      The JavaClass of the EventType.
      Returns:
      will never be null.
    • getSources

      public List<Source> 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object