Annotation Interface MasterSerialEventService
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@MappedService(MasterSerialEvent.class)
public @interface MasterSerialEventService
Annotation for the handler of a
MasterSerialEvent.
The annotated class must implement Consumer of the event type and provide
a public no-args constructor, which is verified at compile time by the annotation processor.
The handler is a stateless singleton. Since this is a MappedService, different clients
may provide different handlers for the same event, and the server does not need to know them at all.
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends MasterSerialEvent> Determines the serviced event class.
-
Element Details
-
value
Class<? extends MasterSerialEvent> valueDetermines the serviced event class.- Returns:
- the event class handled by the annotated class
-