Record Class AnnotatedEventHandler<E extends Event>
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.AnnotatedEventHandler<E>
- All Implemented Interfaces:
EventHandlerBehaviour<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTyperecord component.static EventHandlerRegistrystatic EventHandlerRegistryvoidhandle(EventMessage<E> eventMessage) final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.intorder()Returns the value of theorderrecord component.Returns the value of theprocessingGrouprecord component.Provider<?> provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotatedEventHandler
public AnnotatedEventHandler(Provider<?> provider, Method method, Class<E> eventType, int order, String processingGroup) Creates an instance of aAnnotatedEventHandlerrecord class.- Parameters:
provider- the value for theproviderrecord componentmethod- the value for themethodrecord componenteventType- the value for theeventTyperecord componentorder- the value for theorderrecord componentprocessingGroup- the value for theprocessingGrouprecord component
-
-
Method Details
-
from
-
from
-
handle
- Specified by:
handlein interfaceEventHandlerBehaviour<E extends Event>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
eventType
-
order
public int order()Returns the value of theorderrecord component.- Specified by:
orderin interfaceEventHandlerBehaviour<E extends Event>- Returns:
- the value of the
orderrecord component
-
processingGroup
Returns the value of theprocessingGrouprecord component.- Specified by:
processingGroupin interfaceEventHandlerBehaviour<E extends Event>- Returns:
- the value of the
processingGrouprecord component
-