Class ApplicationBusImpl
java.lang.Object
org.refcodes.eventbus.AbstractEventBus<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,org.refcodes.mixin.EventMetaData,String>
org.refcodes.eventbus.ext.application.ApplicationBusImpl
- All Implemented Interfaces:
org.refcodes.component.Destroyable
,org.refcodes.component.HandleLookup<String,
,org.refcodes.observer.Observer<ApplicationBusEvent>> org.refcodes.eventbus.DispatchStrategyAccessor
,org.refcodes.eventbus.EventBusObservable<ApplicationBusEvent,
,org.refcodes.observer.Observer<ApplicationBusEvent>, ApplicationEventMatcher, String> org.refcodes.eventbus.EventBusPublisher<ApplicationBusEvent>
,ApplicationBus
,DestroyBus
,ExceptionBus
,InitializeBus
,LifecycleBus
,MessageBus
,PauseBus
,PayloadBus
,PropertiesBus
,ResumeBus
,StartBus
,StopBus
,org.refcodes.eventbus.GenericEventBus<ApplicationBusEvent,
,org.refcodes.observer.Observer<ApplicationBusEvent>, ApplicationEventMatcher, org.refcodes.mixin.EventMetaData, String> org.refcodes.matcher.Matchable<ApplicationBusEvent>
,org.refcodes.observer.Publisher<ApplicationBusEvent>
public class ApplicationBusImpl
extends org.refcodes.eventbus.AbstractEventBus<ApplicationBusEvent,org.refcodes.observer.Observer<ApplicationBusEvent>,ApplicationEventMatcher,org.refcodes.mixin.EventMetaData,String>
implements ApplicationBus
ApplicationBusImpl
implements the ApplicationBus
, extending
the ApplicationBus
with convenience functionality common to everyday
application and service development.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomaton
Nested classes/interfaces inherited from interface org.refcodes.eventbus.DispatchStrategyAccessor
org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyMutator, org.refcodes.eventbus.DispatchStrategyAccessor.DispatchStrategyProperty
-
Constructor Summary
ConstructorDescriptionConstructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl
(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl
(ExecutorService aExecutorService) Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.ApplicationBusImpl
(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy) Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.ApplicationBusImpl
(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, boolean isDaemon) Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.ApplicationBusImpl
(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, ExecutorService aExecutorService) Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. -
Method Summary
Methods inherited from class org.refcodes.eventbus.AbstractEventBus
cascadeDispatch, destroy, getDispatchStrategy, hasHandle, isMatching, lookupHandle, parallelDispatch, publishEvent, removeHandle, sequentialDispatch, subscribe, unsubscribeAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.eventbus.ext.application.ApplicationBus
onAction, onAction, onActions, onActions, onAlias, onAlias, onCatchAll, onChannel, onChannel, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onEvent, onGroup, onGroup, onType, onUniversalId, onUniversalId, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, publishEvent, subscribe, subscribe
Methods inherited from interface org.refcodes.component.Destroyable
destroy
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.EventBusObservable
subscribe, unsubscribeAll
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.eventbus.GenericEventBus
publishEvent, publishEvent
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.matcher.Matchable
isMatching
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
-
Constructor Details
-
ApplicationBusImpl
public ApplicationBusImpl()Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. -
ApplicationBusImpl
public ApplicationBusImpl(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events. -
ApplicationBusImpl
Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.- Parameters:
aExecutorService
- TheExecutorService
to be used when creating threads.
-
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy) Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events.- Parameters:
aDispatchStrategy
- TheDispatchStrategy
to be used when publishing events.
-
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, boolean isDaemon) Constructs theApplicationBus
with the givenDispatchStrategy
when publishing events. -
ApplicationBusImpl
public ApplicationBusImpl(org.refcodes.eventbus.DispatchStrategy aDispatchStrategy, ExecutorService aExecutorService) Constructs theApplicationBus
with theDispatchStrategy
beingDispatchStrategy.CASCADE
when publishing events.- Parameters:
aDispatchStrategy
- TheDispatchStrategy
to be used when publishing events.aExecutorService
- TheExecutorService
to be used when creating threads.
-