- All Implemented Interfaces:
EventBrokerEvent<EventBus>
,EventDispatcherEvent<Enum<?>,
,org.refcodes.observer.EventMetaData, EventBus> org.refcodes.mixin.ActionAccessor<Enum<?>>
,org.refcodes.mixin.MetaDataAccessor<org.refcodes.observer.EventMetaData>
,org.refcodes.mixin.SourceAccessor<EventBus>
,org.refcodes.observer.ActionEvent<Enum<?>,
,EventBus> org.refcodes.observer.Event<EventBus>
,org.refcodes.observer.MetaDataActionEvent<Enum<?>,
,org.refcodes.observer.EventMetaData, EventBus> org.refcodes.observer.MetaDataEvent<org.refcodes.observer.EventMetaData,
EventBus>
public class EventBusEvent
extends org.refcodes.observer.AbstractMetaDataActionEvent<Enum<?>,org.refcodes.observer.EventMetaData,EventBus>
implements EventBrokerEvent<EventBus>
Intuitive Meta-Class for the
MetaDataActionEvent
as used by the
EventBus
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,
B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A, B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object> Nested classes/interfaces inherited from interface org.refcodes.eventbus.EventDispatcherEvent
EventDispatcherEvent.EventDispatcherEventBuilder<A,
META extends org.refcodes.observer.EventMetaData, SRC extends EventDispatcher<?, ?, ?, ?, ?>, B extends EventDispatcherEvent.EventDispatcherEventBuilder<A, META, SRC, B>> Nested classes/interfaces inherited from interface org.refcodes.mixin.MetaDataAccessor
org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD extends Object,
B extends org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD, B>>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<MD extends Object>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<MD extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceBuilder<SRC extends Object,
B extends org.refcodes.mixin.SourceAccessor.SourceBuilder<SRC, B>>, org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object> -
Field Summary
Fields inherited from class org.refcodes.observer.AbstractMetaDataActionEvent
_eventMetaData
Fields inherited from class org.refcodes.observer.AbstractActionEvent
_action
-
Constructor Summary
ConstructorDescriptionEventBusEvent
(Class<?> aPublisherType, EventBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.EventBusEvent
(Enum<?> aAction, Class<?> aPublisherType, EventBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.EventBusEvent
(Enum<?> aAction, String aChannel, Class<?> aPublisherType, EventBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.EventBusEvent
(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource) Constructs an event with the given values for the according properties.EventBusEvent
(Enum<?> aAction, String aChannel, EventBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.EventBusEvent
(Enum<?> aAction, EventBus aSource) Constructs an event with the given Meta-Data.EventBusEvent
(Enum<?> aAction, org.refcodes.observer.EventMetaData aEventMetaData, EventBus aSource) Constructs an event with the given Meta-Data.EventBusEvent
(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource) Constructs an event with the given values for the according properties.EventBusEvent
(String aChannel, EventBus aSource) Constructs an event with predefined values for the according properties retrieved from the caller's class.EventBusEvent
(EventBus aSource) Constructs an event with the given Meta-Data.EventBusEvent
(org.refcodes.observer.EventMetaData aEventMetaData, EventBus aSource) Constructs an event with the given Meta-Data. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventBusEvent.Builder
builder()
Creates builder to buildEventBusEvent
.Methods inherited from class org.refcodes.observer.AbstractMetaDataActionEvent
getMetaData, toString
Methods inherited from class org.refcodes.observer.AbstractActionEvent
getAction
Methods inherited from class org.refcodes.observer.AbstractEvent
getSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.ActionAccessor
getAction
Methods inherited from interface org.refcodes.mixin.MetaDataAccessor
getMetaData
Methods inherited from interface org.refcodes.mixin.SourceAccessor
getSource
-
Constructor Details
-
EventBusEvent
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aPublisherType
- The type of the event publisher.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action associated to this event.aPublisherType
- The type of the event publisher.aSource
- The source of this event.
-
EventBusEvent
public EventBusEvent(Enum<?> aAction, org.refcodes.observer.EventMetaData aEventMetaData, EventBus aSource) Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action associated to this event.aEventMetaData
- The event's meta data.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action associated to this event.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action associated to this event.aChannel
- The channel name on which the event is receivable.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action associated to this event.aChannel
- The channel name on which the event is receivable.aPublisherType
- The publisher type for theEventMetaData
.aSource
- The source of this event.
-
EventBusEvent
public EventBusEvent(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource) Constructs an event with the given values for the according properties.- Parameters:
aAction
- The action associated to this event.aAlias
- The alias for this event.aGroup
- The group this event belongs to.aChannel
- The channel this event is broadcasted on.aUid
- The UID (Universal-TID) property.aPublisherType
- The type of the event publisher.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with the given Meta-Data.- Parameters:
aEventMetaData
- The event's meta data.aSource
- The source of this event.
-
EventBusEvent
Constructs an event with the given Meta-Data.- Parameters:
aSource
- The source of this event.
-
EventBusEvent
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aChannel
- The channel name on which the event is receivable.aSource
- The source of this event.
-
EventBusEvent
public EventBusEvent(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource) Constructs an event with the given values for the according properties.- Parameters:
aAlias
- The alias for this event.aGroup
- The group this event belongs to.aChannel
- The channel this event is broadcasted on.aUid
- The UID (Universal-TID) property.aPublisherType
- The type of the event publisher.aSource
- The source of this event.
-
-
Method Details
-
builder
Creates builder to buildEventBusEvent
.- Returns:
- created builder
-