Every JDA instance has an EventManager
implementation
that deals with the handling and forwarding of Events
.
The default manager is the InterfacedEventManager
which uses the EventListener
to listen for events.
The ListenerAdapter
is an implementation which provides
methods for each event of net.dv8tion.jda.core.events
The AnnotatedEventManager
can forward events directly to methods that have the SubscribeEvent
annotation.
Note: All of the standard EventManager implementations are synchronized
Interface | Description |
---|---|
EventListener |
JDA pushes
Events to the registered EventListeners. |
IEventManager |
An interface for JDA's EventManager system.
|
Class | Description |
---|---|
AnnotatedEventManager |
Implementation for
IEventManager
which checks for SubscribeEvent annotations on both
static and member methods. |
InterfacedEventManager |
An
IEventManager implementation
that uses the EventListener interface for
event listeners. |
ListenerAdapter |
An abstract implementation of
EventListener which divides Events
for you. |
Annotation Type | Description |
---|---|
SubscribeEvent |
Annotation used by the
AnnotatedEventManager
this is only picked up if the event manager implementation has been set to use the AnnotatedEventManager
via JDABuilder.setEventManager(IEventManager) |