Record Class AnnotatedEventHandler<E extends Event>
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.AnnotatedEventHandler<E>
- All Implemented Interfaces:
EventHandlerBehaviour<E>
public record AnnotatedEventHandler<E extends Event>(Provider<?> provider, Method method, Class<E extends Event> eventType, int order, String processingGroup, MessageArgumentBinder<E extends Event, EventMessage<E extends Event>> argumentBinder)
extends Record
implements EventHandlerBehaviour<E>
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedEventHandler(Provider<?> provider, Method method, Class<E> eventType, int order, String processingGroup, MessageArgumentBinder<E, EventMessage<E>> argumentBinder) Creates an instance of aAnnotatedEventHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentBinderrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTyperecord component.static ProcessingGroupRegistrystatic ProcessingGroupRegistryvoidhandle(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, MessageArgumentBinder<E, EventMessage<E>> argumentBinder) 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 componentargumentBinder- the value for theargumentBinderrecord 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
-
argumentBinder
Returns the value of theargumentBinderrecord component.- Returns:
- the value of the
argumentBinderrecord component
-