Package net.orbyfied.j8.event
Class ComplexEventBus
java.lang.Object
net.orbyfied.j8.event.EventBus
net.orbyfied.j8.event.ComplexEventBus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S extends EventService>
SgetService(Class<S> klass) Map<Class<? extends EventService>,EventService> <E> EventBusPosts an event to the event bus through the pipeline supplied by the supplied class.register(EventListener listener) Registers a listener instance by creating aRegisteredListenerand adding it to the registrations in this event bus.unregister(RegisteredListener listener) Unregisters a registered listener.Methods inherited from class net.orbyfied.j8.event.EventBus
bake, getAllRegistered, getAllRegistered, getPipelineFor, getPipelineOrNull, getRegistered, isRegistered, isRegistered, post, postUnsafe, pushSafe, unregisterAll, unregisterLast, unregisterLast, withDefaultPipelineFactory
-
Constructor Details
-
ComplexEventBus
public ComplexEventBus()
-
-
Method Details
-
register
Description copied from class:EventBusRegisters a listener instance by creating aRegisteredListenerand adding it to the registrations in this event bus.- Overrides:
registerin classEventBus- Parameters:
listener- The listener instance.- Returns:
- The new
RegisteredListenerinstance.
-
unregister
Description copied from class:EventBusUnregisters a registered listener.- Overrides:
unregisterin classEventBus- Parameters:
listener- The registered listener.- Returns:
- This.
-
post
Description copied from class:EventBusPosts an event to the event bus through the pipeline supplied by the supplied class. Calls all functional event services before posting. -
getServicesLinear
-
getServicesMapped
-
getService
-
addService
-
removeService
-