Package org.refcodes.eventbus.ext.application
package org.refcodes.eventbus.ext.application
This artifact extends the refcodes-eventbus
toolkit with add-on functionality as of being provided by the refcodes-properties
toolkit, lifecycle-support and the like required for stand alone application
development.
Please refer to the refcodes-eventbus: Observer + Publish/Subscribe = Message broker documentation for an up-to-date and detailed description on the usage of this artifact.
-
ClassDescriptionThe
ApplicationBus
extends theEventDispatcher
with convenience functionality common to everyday application and service development as defined by the interfacesPayloadBus
,PropertiesBus
,MessageBus
,ExceptionBus
as well asLifecycleBus
on top of theEventDispatcher
.Intuitive Meta-Interface for theApplicationBusEvent
as used by theApplicationBus
.Builder to buildApplicationBusEvent
.A convenience definition of anEventMatcher
for the ready to use out of the boxEventBus
implementation of the genericEventDispatcher
definition.A convenience definition of anObserver
for the ready to use out of the boxEventBus
implementation of the genericEventDispatcher
definition.Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for theApplicationBusEventMatcher
elements.TheDestroyBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofDestroyBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.DESTROY
.Builder to buildDestroyBusEvent
.TheExceptionBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofThrowable
instances.Implementation of theExceptionBusEvent
.Builder to buildExceptionBusEvent
.TheInitializeBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofInitializeBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.INITIALIZE
.Builder to buildInitializeBusEvent
.TheLifecycleBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofLifecycleStatus
signals such asInitializeBusEvent
,StartBusEvent
,PauseBusEvent
,ResumeBusEvent
,StopBusEvent
orDestroyBusEvent
instances.TheLifecycleBusEvent
represents aLifecycleRequest
and might be vetoed by (depending on the firing observable) throwing aVetoException
orVetoException.VetoRuntimeException
by the accordingObserver
.An observer for listening toLifecycleBusEvent
instances.TheMessageBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching of messageString
instances.TheMessageBusEvent
represents an event indication a message.Builder to buildMessageBusEvent
.ThePauseBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofPauseBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.PAUSE
.Builder to buildPauseBusEvent
.ThePayloadBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching of payloads.ThePayloadBusEvent
represents an event indication a payload.Builder to buildPayloadBusEvent
.ThePropertiesBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofProperties
instances.Implementation of thePropertiesBusEvent
.Builder to buildPropertiesBusEvent
.TheResumeBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofResumeBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.RESUME
.Builder to buildResumeBusEvent
.TheStartBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofStartBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.START
.Builder to buildStartBusEvent
.TheStopBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofStopBusEvent
instances.Implementation of theLifecycleBusEvent
forLifecycleRequest.STOP
.Builder to buildStopBusEvent
.