Package org.refcodes.observer
Class ActionMetaDataEventBuilderImpl
- 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<?>,EventMetaData,java.lang.Object,ActionMetaDataEvent.ActionMetaDataEventBuilder>
-
- org.refcodes.observer.ActionMetaDataEventBuilderImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<java.lang.Enum<?>>,org.refcodes.mixin.ActionAccessor.ActionBuilder<java.lang.Enum<?>,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<?>,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,ActionEvent,ActionMetaDataEvent,ActionMetaDataEvent.ActionMetaDataEventBuilder,Event,EventMetaData,EventMetaData.EventMetaDataBuilder,GenericActionEvent<java.lang.Enum<?>,EventMetaData>,GenericActionMetaDataEvent<java.lang.Enum<?>,EventMetaData,java.lang.Object>,GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<java.lang.Enum<?>,EventMetaData,java.lang.Object,ActionMetaDataEvent.ActionMetaDataEventBuilder>,GenericEvent<java.lang.Enum<?>>,GenericMetaDataEvent<java.lang.Enum<?>,EventMetaData>,MetaDataEvent
public class ActionMetaDataEventBuilderImpl extends AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<java.lang.Enum<?>,EventMetaData,java.lang.Object,ActionMetaDataEvent.ActionMetaDataEventBuilder> implements ActionMetaDataEvent.ActionMetaDataEventBuilder
Implementation of theActionMetaDataEvent.ActionMetaDataEventBuilderinterface for easily creatingActionMetaDataEventinstances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.refcodes.observer.AbstractActionMetaDataEvent
AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.observer.ActionMetaDataEvent
ActionMetaDataEvent.ActionMetaDataEventBuilder
-
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.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
EventMetaData.EventMetaDataBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.observer.GenericActionMetaDataEvent
GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,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.MetaDataAccessor
org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD extends java.lang.Object,B extends org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD,B>>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<MD extends java.lang.Object>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<MD extends java.lang.Object>
-
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
-
-
Field Summary
-
Fields inherited from class org.refcodes.observer.AbstractActionEvent
_action
-
Fields inherited from class org.refcodes.observer.AbstractActionMetaDataEvent
_eventMetaData
-
-
Constructor Summary
Constructors Constructor Description ActionMetaDataEventBuilderImpl(java.lang.Class<?> aPublisherType, java.lang.Object aSource)Constructs an event with predefined values for the according properties retrieved from the caller's class.ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Class<?> aPublisherType, java.lang.Object aSource)Constructs an event with predefined values for the according properties retrieved from the caller's class.ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Object aSource)Constructs an event with the given Meta-Data.ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aChannel, java.lang.Object aSource)Constructs an event with predefined values for the according properties retrieved from the caller's class.ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, java.lang.Object aSource)Constructs an event with the given values for the according properties.ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, EventMetaData aEventMetaData, java.lang.Object aSource)Constructs an event with the given Meta-Data.ActionMetaDataEventBuilderImpl(java.lang.Object aSource)Constructs an event with the given Meta-Data.ActionMetaDataEventBuilderImpl(java.lang.String aChannel, java.lang.Object aSource)Constructs an event with predefined values for the according properties retrieved from the caller's class.ActionMetaDataEventBuilderImpl(java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, java.lang.Object aSource)Constructs an event with the given values for the according properties.ActionMetaDataEventBuilderImpl(EventMetaData aEventMetaData, java.lang.Object aSource)Constructs an event with the given Meta-Data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventMetaData.EventMetaDataBuildergetMetaData()voidsetAlias(java.lang.String aAlias)voidsetChannel(java.lang.String aChannel)voidsetGroup(java.lang.String aGroup)voidsetMetaData(EventMetaData aMetaData)voidsetPublisherType(java.lang.Class<?> aPublisherType)The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.voidsetUniversalId(java.lang.String aUid)-
Methods inherited from class org.refcodes.observer.AbstractActionEvent
getAction
-
Methods inherited from class org.refcodes.observer.AbstractActionMetaDataEvent
toString
-
Methods inherited from class org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder
getAlias, getChannel, getGroup, getPublisherType, getUniversalId, setAction
-
Methods inherited from class org.refcodes.observer.AbstractEvent
getSource
-
Methods inherited from interface org.refcodes.observer.EventMetaData
getPublisherType
-
Methods inherited from interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
withAction, withAlias, withChannel, withGroup, withMetaData, withPublisherType, withUniversalId
-
-
-
-
Constructor Detail
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(EventMetaData aEventMetaData, java.lang.Object aSource)
Constructs an event with the given Meta-Data.- Parameters:
aEventMetaData- The Meta-Data to by supplied by the event.aSource- The source from which this event originated.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, EventMetaData aEventMetaData, java.lang.Object aSource)Constructs an event with the given Meta-Data.- Parameters:
aAction- The action which theGenericActionEventrepresents.aEventMetaData- The Meta-Data to by supplied by the event.aSource- The source from which this event originated.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Object aSource)Constructs an event with the given Meta-Data.- Parameters:
aAction- The action which theGenericActionEventrepresents.aSource- The source from which this event originated.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Object aSource)
Constructs an event with the given Meta-Data.- Parameters:
aSource- The source from which this event originated.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Class<?> aPublisherType, java.lang.Object 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.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.String aChannel, java.lang.Object 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.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, java.lang.Object 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.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.Class<?> aPublisherType, java.lang.Object 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.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aChannel, java.lang.Object 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.
-
ActionMetaDataEventBuilderImpl
public ActionMetaDataEventBuilderImpl(java.lang.Enum<?> aAction, java.lang.String aAlias, java.lang.String aGroup, java.lang.String aChannel, java.lang.String aUid, java.lang.Class<?> aPublisherType, java.lang.Object 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.
-
-
Method Detail
-
setPublisherType
public void setPublisherType(java.lang.Class<?> aPublisherType)
The least common denominator in event Meta-Data is the type of the publisher which gives a hint on the source of the event.- Specified by:
setPublisherTypein interfaceEventMetaData.EventMetaDataBuilder- Parameters:
aPublisherType- The type of the publisher who published the event.
-
setUniversalId
public void setUniversalId(java.lang.String aUid)
- Specified by:
setUniversalIdin interfaceorg.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator
-
setAlias
public void setAlias(java.lang.String aAlias)
- Specified by:
setAliasin interfaceorg.refcodes.mixin.AliasAccessor.AliasMutator
-
setGroup
public void setGroup(java.lang.String aGroup)
- Specified by:
setGroupin interfaceorg.refcodes.mixin.GroupAccessor.GroupMutator
-
setChannel
public void setChannel(java.lang.String aChannel)
- Specified by:
setChannelin interfaceorg.refcodes.mixin.ChannelAccessor.ChannelMutator
-
setMetaData
public void setMetaData(EventMetaData aMetaData)
- Specified by:
setMetaDatain interfaceorg.refcodes.mixin.MetaDataAccessor.MetaDataMutator<java.lang.Enum<?>>
-
getMetaData
public EventMetaData.EventMetaDataBuilder getMetaData()
- Specified by:
getMetaDatain interfaceActionMetaDataEvent.ActionMetaDataEventBuilder- Specified by:
getMetaDatain interfaceorg.refcodes.mixin.MetaDataAccessor<java.lang.Enum<?>>- Overrides:
getMetaDatain classAbstractActionMetaDataEvent<java.lang.Enum<?>,EventMetaData,java.lang.Object>
-
-