Class ApplicationEventBuilderImpl
- java.lang.Object
-
- org.refcodes.observer.AbstractEvent<SRC>
-
- org.refcodes.observer.AbstractActionEvent<A,SRC>
-
- org.refcodes.observer.AbstractActionMetaDataEvent<A,EM,SRC>
-
- org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>
-
- org.refcodes.eventbus.ext.application.ApplicationEventBuilderImpl
-
- All Implemented Interfaces:
ApplicationEvent
,ApplicationEvent.ApplicationEventBuilder
,org.refcodes.eventbus.GenericBusEvent<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus>
,org.refcodes.eventbus.GenericBusEvent.GenericBusEventBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>
,org.refcodes.mixin.ActionAccessor<java.lang.Enum<?>>
,org.refcodes.mixin.ActionAccessor.ActionBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData>
,org.refcodes.mixin.ActionAccessor.ActionMutator<java.lang.Enum<?>>
,org.refcodes.mixin.ActionAccessor.ActionProperty<java.lang.Enum<?>>
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.AliasAccessor.AliasBuilder<java.lang.Enum<?>>
,org.refcodes.mixin.AliasAccessor.AliasMutator
,org.refcodes.mixin.AliasAccessor.AliasProperty
,org.refcodes.mixin.ChannelAccessor
,org.refcodes.mixin.ChannelAccessor.ChannelBuilder<java.lang.Enum<?>>
,org.refcodes.mixin.ChannelAccessor.ChannelMutator
,org.refcodes.mixin.ChannelAccessor.ChannelProperty
,org.refcodes.mixin.GroupAccessor
,org.refcodes.mixin.GroupAccessor.GroupBuilder<java.lang.Enum<?>>
,org.refcodes.mixin.GroupAccessor.GroupMutator
,org.refcodes.mixin.GroupAccessor.GroupProperty
,org.refcodes.mixin.MetaDataAccessor<java.lang.Enum<?>>
,org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData>
,org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<java.lang.Enum<?>>
,org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<java.lang.Enum<?>>
,org.refcodes.mixin.SourceAccessor<java.lang.Enum<?>>
,org.refcodes.mixin.UniversalIdAccessor
,org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<java.lang.Enum<?>>
,org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator
,org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
,org.refcodes.observer.EventMetaData
,org.refcodes.observer.EventMetaData.EventMetaDataBuilder
,org.refcodes.observer.GenericActionEvent<java.lang.Enum<?>,org.refcodes.observer.EventMetaData>
,org.refcodes.observer.GenericActionMetaDataEvent<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus>
,org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>
,org.refcodes.observer.GenericEvent<java.lang.Enum<?>>
,org.refcodes.observer.GenericMetaDataEvent<java.lang.Enum<?>,org.refcodes.observer.EventMetaData>
public class ApplicationEventBuilderImpl extends org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder> implements ApplicationEvent.ApplicationEventBuilder
Intuitive Meta-Class for theActionMetaDataEventBuilderImpl
as used by theApplicationBus
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.refcodes.observer.AbstractActionMetaDataEvent
org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<A extends java.lang.Object,EM extends org.refcodes.observer.EventMetaData,SRC extends java.lang.Object,B extends org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
-
Nested classes/interfaces inherited from interface org.refcodes.eventbus.ext.application.ApplicationEvent
ApplicationEvent.ApplicationEventBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChannelAccessor
org.refcodes.mixin.ChannelAccessor.ChannelBuilder<B extends org.refcodes.mixin.ChannelAccessor.ChannelBuilder<B>>, org.refcodes.mixin.ChannelAccessor.ChannelMutator, org.refcodes.mixin.ChannelAccessor.ChannelProperty
-
Nested classes/interfaces inherited from interface org.refcodes.observer.EventMetaData
org.refcodes.observer.EventMetaData.EventMetaDataBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.observer.GenericActionMetaDataEvent
org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A extends java.lang.Object,EM extends org.refcodes.observer.EventMetaData,SRC extends java.lang.Object,B extends org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.eventbus.GenericBusEvent
org.refcodes.eventbus.GenericBusEvent.GenericBusEventBuilder<A extends java.lang.Object,META extends org.refcodes.observer.EventMetaData,SRC extends org.refcodes.eventbus.GenericEventBus<?,?,?,?,?>,B extends org.refcodes.eventbus.GenericBusEvent.GenericBusEventBuilder<A,META,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.GroupAccessor
org.refcodes.mixin.GroupAccessor.GroupBuilder<B extends org.refcodes.mixin.GroupAccessor.GroupBuilder<B>>, org.refcodes.mixin.GroupAccessor.GroupMutator, org.refcodes.mixin.GroupAccessor.GroupProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends java.lang.Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.UniversalIdAccessor
org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B extends org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
-
-
Constructor Summary
Constructors Constructor Description ApplicationEventBuilderImpl(java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, ApplicationBus aSource)
Constructs an event with the given Meta-Data.ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, org.refcodes.observer.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.ApplicationEventBuilderImpl(java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ApplicationEventBuilderImpl(java.lang.String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ApplicationEventBuilderImpl(ApplicationBus aSource)
Constructs an event with the given Meta-Data.ApplicationEventBuilderImpl(org.refcodes.observer.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.observer.EventMetaData.EventMetaDataBuilder
getMetaData()
void
setAlias(java.lang.String aAlias)
void
setChannel(java.lang.String aChannel)
void
setGroup(java.lang.String aGroup)
void
setMetaData(org.refcodes.observer.EventMetaData aMetaData)
void
setPublisherType(java.lang.Class<?> aPublisherType)
void
setUniversalId(java.lang.String aUid)
-
Methods inherited from class org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder
getAlias, getChannel, getGroup, getPublisherType, getUniversalId, setAction
-
Methods inherited from interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
withAction, withAlias, withChannel, withGroup, withMetaData, withPublisherType, withUniversalId
-
-
-
-
Constructor Detail
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, org.refcodes.observer.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action which this represents.aEventMetaData
- The Meta-Data to be supplied by the event.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action which this represents.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(org.refcodes.observer.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aEventMetaData
- The Meta-Data to be supplied by the event.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action which this represents.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action which this represents.aChannel
- The channel name on which the event is receivable.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aAction
- The action which this represents.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.Class<?> aPublisherType, ApplicationBus aSource)
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 from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.String aChannel, ApplicationBus aSource)
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 from which this event originated.
-
ApplicationEventBuilderImpl
public ApplicationEventBuilderImpl(java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-ID) property.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
-
Method Detail
-
setPublisherType
public void setPublisherType(java.lang.Class<?> aPublisherType)
- Specified by:
setPublisherType
in interfaceorg.refcodes.observer.EventMetaData.EventMetaDataBuilder
-
setUniversalId
public void setUniversalId(java.lang.String aUid)
- Specified by:
setUniversalId
in interfaceorg.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator
-
setAlias
public void setAlias(java.lang.String aAlias)
- Specified by:
setAlias
in interfaceorg.refcodes.mixin.AliasAccessor.AliasMutator
-
setGroup
public void setGroup(java.lang.String aGroup)
- Specified by:
setGroup
in interfaceorg.refcodes.mixin.GroupAccessor.GroupMutator
-
setChannel
public void setChannel(java.lang.String aChannel)
- Specified by:
setChannel
in interfaceorg.refcodes.mixin.ChannelAccessor.ChannelMutator
-
setMetaData
public void setMetaData(org.refcodes.observer.EventMetaData aMetaData)
- Specified by:
setMetaData
in interfaceorg.refcodes.mixin.MetaDataAccessor.MetaDataMutator<java.lang.Enum<?>>
-
getMetaData
public org.refcodes.observer.EventMetaData.EventMetaDataBuilder getMetaData()
- Specified by:
getMetaData
in interfaceorg.refcodes.mixin.MetaDataAccessor<java.lang.Enum<?>>
- Overrides:
getMetaData
in classorg.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<java.lang.Enum<?>,org.refcodes.observer.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>
-
-