Uses of Interface
org.refcodes.eventbus.ext.application.ApplicationBus
-
Uses of ApplicationBus in org.refcodes.eventbus.ext.application
Modifier and TypeInterfaceDescriptioninterface
TheMessagePropertiesBus
extends theApplicationBus
with convenience functionality common to everyday application and service development regarding dispatching ofProperties
instances.Modifier and TypeClassDescriptionclass
ApplicationBusImpl
implements theApplicationBus
, extending theApplicationBus
with convenience functionality common to everyday application and service development.Modifier and TypeMethodDescriptionstatic ApplicationBus
ApplicationBusSugar.applicationBus()
static ApplicationBus
ApplicationBusSugar.applicationBus
(boolean isDaemon) static ApplicationBus
ApplicationBusSugar.asyncDispatchBus()
Constructs theApplicationBus
with theDispatchStrategy.ASYNC
when publishing events: Same as theDispatchStrategy.SEQUENTIAL
approach with the difference that the sequential dispatch process is done asynchronously, freeing your parent's thread immediately after publishing your parent event.static ApplicationBus
ApplicationBusSugar.asyncDispatchBus
(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy.ASYNC
when publishing events: Same as theDispatchStrategy.SEQUENTIAL
approach with the difference that the sequential dispatch process is done asynchronously, freeing your parent's thread immediately after publishing your parent event.static ApplicationBus
ApplicationBusSugar.cascadeDispatchBus()
Constructs theApplicationBus
with theDispatchStrategy.CASCADE
when publishing events: The parent (invoker) thread is used to publish the parent's event to all matching observers (and is blocked till done).static ApplicationBus
ApplicationBusSugar.cascadeDispatchBus
(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy.CASCADE
when publishing events: The parent (invoker) thread is used to publish the parent's event to all matching observers (and is blocked till done).DestroyBusEvent.getSource()
ExceptionBusEvent.getSource()
InitializeBusEvent.getSource()
static ApplicationBus
ApplicationBusSugar.parallelDispatchBus()
Constructs theApplicationBus
with theDispatchStrategy.PARALLEL
when publishing events: Each matching observer is invoked in its own thread.static ApplicationBus
ApplicationBusSugar.parallelDispatchBus
(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy.PARALLEL
when publishing events: Each matching observer is invoked in its own thread.static ApplicationBus
ApplicationBusSugar.sequentialDispatchBus()
Constructs theApplicationBus
with theDispatchStrategy.SEQUENTIAL
when publishing events: The parent (invoker) thread is used to publish the parent's event as well as the child events published by the matching observers of the parent event (and so on, in case them useDispatchStrategy.SEQUENTIAL
as well).static ApplicationBus
ApplicationBusSugar.sequentialDispatchBus
(boolean isDaemon) Constructs theApplicationBus
with theDispatchStrategy.SEQUENTIAL
when publishing events: The parent (invoker) thread is used to publish the parent's event as well as the child events published by the matching observers of the parent event (and so on, in case them useDispatchStrategy.SEQUENTIAL
as well).Modifier and TypeMethodDescriptionstatic ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Enum<?> aAction, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Enum<?> aAction, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Enum<?> aAction, ApplicationBus aSource) Constructs an event with the given Meta-Data.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(ApplicationBus aSource) Constructs an event with the given Meta-Data.static ApplicationBusEvent
ApplicationBusSugar.applicationBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ModifierConstructorDescriptionApplicationBusEventBuilderImpl
(Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventBuilderImpl
(Enum<?> aAction, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventBuilderImpl
(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ApplicationBusEventBuilderImpl
(Enum<?> aAction, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventBuilderImpl
(Enum<?> aAction, ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventBuilderImpl
(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventBuilderImpl
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ApplicationBusEventBuilderImpl
(String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.Constructs an event with the given Meta-Data.ApplicationBusEventBuilderImpl
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventImpl
(Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventImpl
(Enum<?> aAction, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventImpl
(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ApplicationBusEventImpl
(Enum<?> aAction, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventImpl
(Enum<?> aAction, ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventImpl
(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventImpl
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ApplicationBusEventImpl
(String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationBusEventImpl
(ApplicationBus aSource) Constructs an event with the given Meta-Data.ApplicationBusEventImpl
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.DestroyBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new destroy event.DestroyBusEvent
(String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new destroy event.DestroyBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new destroy event.DestroyBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new destroy event.DestroyBusEvent
(ApplicationBus aSource) Instantiates a new destroy event.DestroyBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new destroy event.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, ApplicationBus aSource) Constructs an event with the given Meta-Data.ExceptionBusEvent
(Enum<?> aAction, Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ExceptionBusEvent
(Throwable aException, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent
(Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ExceptionBusEvent
(Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.ExceptionBusEvent
(Throwable aException, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent
(Throwable aException, ApplicationBus aSource) Constructs an event with the given Meta-Data.ExceptionBusEvent
(Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.InitializeBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, String aChannel, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, ApplicationBus aSource) Instantiates a new initialize event.InitializeBusEvent
(org.refcodes.properties.Properties aProperties, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new initialize event.MessageBusEventImpl
(Enum<?> aAction, String aMessage, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.MessageBusEventImpl
(Enum<?> aAction, String aMessage, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.MessageBusEventImpl
(Enum<?> aAction, String aMessage, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.MessageBusEventImpl
(Enum<?> aAction, String aMessage, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.MessageBusEventImpl
(Enum<?> aAction, String aMessage, ApplicationBus aSource) Constructs an event with the given Meta-Data.MessageBusEventImpl
(Enum<?> aAction, String aMessage, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.MessageBusEventImpl
(String aMessage, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.MessageBusEventImpl
(String aMessage, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.MessageBusEventImpl
(String aMessage, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.MessageBusEventImpl
(String aMessage, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.MessageBusEventImpl
(String aMessage, ApplicationBus aSource) Constructs an event with the given Meta-Data.MessageBusEventImpl
(String aMessage, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.PauseBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new pause event.PauseBusEvent
(String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new pause event.PauseBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new pause event.PauseBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new pause event.PauseBusEvent
(ApplicationBus aSource) Instantiates a new pause event.PauseBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new pause event.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, ApplicationBus aSource) Constructs an event with the given Meta-Data.PayloadBusEventImpl
(Enum<?> aAction, P aPayload, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.PayloadBusEventImpl
(P aPayload, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PayloadBusEventImpl
(P aPayload, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PayloadBusEventImpl
(P aPayload, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PayloadBusEventImpl
(P aPayload, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PayloadBusEventImpl
(P aPayload, ApplicationBus aSource) Constructs an event with the given Meta-Data.PayloadBusEventImpl
(P aPayload, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, ApplicationBus aSource) Constructs an event with the given Meta-Data.PropertiesBusEventImpl
(Enum<?> aAction, org.refcodes.properties.Properties aProperties, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Constructs an event with the given values for the according properties.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, String aChannel, ApplicationBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, ApplicationBus aSource) Constructs an event with the given Meta-Data.PropertiesBusEventImpl
(org.refcodes.properties.Properties aProperties, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Constructs an event with the given Meta-Data.ResumeBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new resume event.ResumeBusEvent
(String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new resume event.ResumeBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new resume event.ResumeBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new resume event.ResumeBusEvent
(ApplicationBus aSource) Instantiates a new resume event.ResumeBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new resume event.StartBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new start event.StartBusEvent
(String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new start event.StartBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new start event.StartBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new start event.StartBusEvent
(ApplicationBus aSource) Instantiates a new start event.StartBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new start event.StopBusEvent
(Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new stop event.StopBusEvent
(String aChannel, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new stop event.StopBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource) Instantiates a new stop event.StopBusEvent
(String aChannel, ApplicationBus aSource) Instantiates a new stop event.StopBusEvent
(ApplicationBus aSource) Instantiates a new stop event.StopBusEvent
(org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource) Instantiates a new stop event.