Interface ApplicationBus
- All Superinterfaces:
org.refcodes.eventbus.BusObservable<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,String>
,org.refcodes.eventbus.BusPublisher<ApplicationEvent>
,DestroyBus
,org.refcodes.eventbus.DispatchStrategyAccessor
,org.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
,org.refcodes.observer.EventMatcher<ApplicationEvent>
,ExceptionBus
,org.refcodes.component.HandleLookup<String,org.refcodes.observer.Observer<ApplicationEvent>>
,InitializeBus
,LifeCycleBus
,org.refcodes.matcher.Matcher<ApplicationEvent>
,MessageBus
,PauseBus
,PayloadBus
,PropertiesBus
,org.refcodes.observer.Publisher<ApplicationEvent>
,ResumeBus
,StartBus
,StopBus
- All Known Subinterfaces:
MessagePropertiesBus
- All Known Implementing Classes:
ApplicationBusImpl
public interface ApplicationBus extends org.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>, PayloadBus, PropertiesBus, MessageBus, ExceptionBus, LifeCycleBus
The
ApplicationBus
extends the EventBus
with convenience
functionality common to everyday application and service development as
defined by the interfaces PayloadBus
, PropertiesBus
,
MessageBus
, ExceptionBus
as well as LifeCycleBus
on
top of the EventBus
. To ensure controlled
LifeCycleBusObserver
bootstrapping (subscribed via
LifeCycleBus.onLifeCycle(LifeCycleBusObserver)
and the like), the
InitializeBusEvent
instances fired upon calls to methods such as
InitializeBus.publishInitialize(Properties)
(and the like) are (if not stated
otherwise) dispatched with the DispatchStrategy.CASCADE
strategy.
Same applies to service "shutdown" as of PauseBus.publishPause()
,
StopBus.publishStop()
or DestroyBus.publishDestroy()
(and the like) which are
also dispatched by default with the DispatchStrategy.CASCADE
strategy. This means that the observer methods
LifeCycleBusObserver.onInitialize(InitializeBusEvent)
,
LifeCycleBusObserver.onPause(PauseBusEvent)
,
LifeCycleBusObserver.onStop(StopBusEvent)
and
LifeCycleBusObserver.onDestroy(DestroyBusEvent)
must exit the
invoking thread as soon as possible so not to block succeeding listener
methods. As initialization is processed in a controlled manner (as mentioned
above), starting or resuming the LifeCycleBusObserver
instances is
done with the DispatchStrategy.PARALLEL
as we enter normal operation.
This means that the observer methods
LifeCycleBusObserver.onStart(StartBusEvent)
and
LifeCycleBusObserver.onResume(ResumeBusEvent)
do not need to exit the
invoking thread as they cannot block succeeding listener methods.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.eventbus.DispatchStrategyAccessor
org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyMutator, org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyProperty
-
Method Summary
Modifier and Type Method Description default <EVT extends ApplicationEvent>
StringonAction(Class<EVT> aEventType, Enum<?> aAction, org.refcodes.observer.Observer<EVT> aObserver)
default String
onAction(Enum<?> aAction, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default <EVT extends ApplicationEvent>
StringonActions(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver, Enum<?>... aActions)
default String
onActions(org.refcodes.observer.Observer<ApplicationEvent> aObserver, Enum<?>... aActions)
default <EVT extends ApplicationEvent>
StringonAlias(Class<EVT> aEventType, String aName, org.refcodes.observer.Observer<EVT> aObserver)
default String
onAlias(String aName, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onCatchAll(org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default <EVT extends ApplicationEvent>
StringonChannel(Class<EVT> aEventType, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)
default String
onChannel(String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, Enum<?> aAction, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonEvent(Class<EVT> aEventType, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)
default String
onEvent(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(Enum<?> aAction, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default String
onEvent(String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default <EVT extends ApplicationEvent>
StringonGroup(Class<EVT> aEventType, String aGroup, org.refcodes.observer.Observer<EVT> aObserver)
default String
onGroup(String aGroup, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default <EVT extends ApplicationEvent>
StringonType(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
StringonUniversalId(Class<EVT> aEventType, String aUid, org.refcodes.observer.Observer<EVT> aObserver)
default String
onUniversalId(String aUid, org.refcodes.observer.Observer<ApplicationEvent> aObserver)
default void
publishEvent(Class<?> aPublisherType)
default void
publishEvent(Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(Enum<?> aAction)
default void
publishEvent(Enum<?> aAction, Class<?> aPublisherType)
default void
publishEvent(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(Enum<?> aAction, String aChannel)
default void
publishEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
default void
publishEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(Enum<?> aAction, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(Enum<?> aAction, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData)
default void
publishEvent(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(String aChannel)
default void
publishEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
default void
publishEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(org.refcodes.eventbus.DispatchStrategy aStrategy)
default void
publishEvent(org.refcodes.mixin.EventMetaData aEventMetaData)
default void
publishEvent(org.refcodes.mixin.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)
default <EVT extends ApplicationEvent>
Stringsubscribe(Class<EVT> aEventType, ApplicationMatcher aEventMatcher, org.refcodes.observer.Observer<EVT> aObserver)
default <EVT extends ApplicationEvent>
Stringsubscribe(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver)
Methods inherited from interface org.refcodes.eventbus.BusObservable
subscribe, unsubscribeAll
Methods inherited from interface org.refcodes.eventbus.ext.application.DestroyBus
onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, onDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy, publishDestroy
Methods inherited from interface org.refcodes.eventbus.DispatchStrategyAccessor
getDispatchStrategy
Methods inherited from interface org.refcodes.eventbus.EventBus
publishEvent, publishEvent
Methods inherited from interface org.refcodes.observer.EventMatcher
isMatching
Methods inherited from interface org.refcodes.eventbus.ext.application.ExceptionBus
onException, onException, onException, onException, onException, onException, onException, onException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException, publishException
Methods inherited from interface org.refcodes.component.HandleLookup
hasHandle, lookupHandle, removeHandle
Methods inherited from interface org.refcodes.eventbus.ext.application.InitializeBus
onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, onInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize, publishInitialize
Methods inherited from interface org.refcodes.eventbus.ext.application.LifeCycleBus
onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle, onLifeCycle
Methods inherited from interface org.refcodes.eventbus.ext.application.MessageBus
onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage, publishMessage
Methods inherited from interface org.refcodes.eventbus.ext.application.PauseBus
onPause, onPause, onPause, onPause, onPause, onPause, onPause, onPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause, publishPause
Methods inherited from interface org.refcodes.eventbus.ext.application.PayloadBus
onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, onPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload, publishPayload
Methods inherited from interface org.refcodes.eventbus.ext.application.PropertiesBus
onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, onProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties, publishProperties
Methods inherited from interface org.refcodes.eventbus.ext.application.ResumeBus
onResume, onResume, onResume, onResume, onResume, onResume, onResume, onResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume, publishResume
Methods inherited from interface org.refcodes.eventbus.ext.application.StartBus
onStart, onStart, onStart, onStart, onStart, onStart, onStart, onStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart, publishStart
Methods inherited from interface org.refcodes.eventbus.ext.application.StopBus
onStop, onStop, onStop, onStop, onStop, onStop, onStop, onStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop, publishStop
-
Method Details
-
onAlias
- Specified by:
onAlias
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onChannel
default String onChannel(String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onChannel
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onGroup
- Specified by:
onGroup
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onUniversalId
default String onUniversalId(String aUid, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onUniversalId
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onAction
default String onAction(Enum<?> aAction, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onAction
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onActions
default String onActions(org.refcodes.observer.Observer<ApplicationEvent> aObserver, Enum<?>... aActions)- Specified by:
onActions
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onCatchAll
- Specified by:
onCatchAll
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default String onEvent(Enum<?> aAction, org.refcodes.observer.Observer<ApplicationEvent> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, Enum<?> aAction, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, Enum<?> aAction, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onEvent
default <EVT extends ApplicationEvent> String onEvent(Class<EVT> aEventType, Enum<?> aAction, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
subscribe
default <EVT extends ApplicationEvent> String subscribe(Class<EVT> aEventType, ApplicationMatcher aEventMatcher, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
subscribe
in interfaceorg.refcodes.eventbus.BusObservable<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,String>
-
subscribe
default <EVT extends ApplicationEvent> String subscribe(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
subscribe
in interfaceorg.refcodes.eventbus.BusObservable<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,String>
-
onType
default <EVT extends ApplicationEvent> String onType(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onType
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onAlias
default <EVT extends ApplicationEvent> String onAlias(Class<EVT> aEventType, String aName, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onAlias
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onChannel
default <EVT extends ApplicationEvent> String onChannel(Class<EVT> aEventType, String aChannel, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onChannel
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onGroup
default <EVT extends ApplicationEvent> String onGroup(Class<EVT> aEventType, String aGroup, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onGroup
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onUniversalId
default <EVT extends ApplicationEvent> String onUniversalId(Class<EVT> aEventType, String aUid, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onUniversalId
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onAction
default <EVT extends ApplicationEvent> String onAction(Class<EVT> aEventType, Enum<?> aAction, org.refcodes.observer.Observer<EVT> aObserver)- Specified by:
onAction
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
onActions
default <EVT extends ApplicationEvent> String onActions(Class<EVT> aEventType, org.refcodes.observer.Observer<EVT> aObserver, Enum<?>... aActions)- Specified by:
onActions
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(org.refcodes.mixin.EventMetaData aEventMetaData)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Enum<?> aAction, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Enum<?> aAction, String aChannel, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(org.refcodes.mixin.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-
publishEvent
default void publishEvent(org.refcodes.eventbus.DispatchStrategy aStrategy)- Specified by:
publishEvent
in interfaceorg.refcodes.eventbus.EventBus<ApplicationEvent,org.refcodes.observer.Observer<ApplicationEvent>,ApplicationMatcher,org.refcodes.mixin.EventMetaData,String>
-