Package top.focess.qq.api.event
Class EventManager
- java.lang.Object
-
- top.focess.qq.api.event.EventManager
-
public class EventManager extends Object
This class is used to submit Event for developers.
-
-
Constructor Summary
Constructors Constructor Description EventManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Event>
voidsubmit(T event)Submit the event to all of its implemented super event class
-
-
-
Method Detail
-
submit
public static <T extends Event> void submit(T event) throws EventSubmitException
Submit the event to all of its implemented super event class- Type Parameters:
T- the event type- Parameters:
event- the event need to be submitted- Throws:
EventSubmitException- if class of this event is abstract or there is no LISTENER_HANDLER in this event
-
-