Class ApplicationEventBuilderImpl

  • All Implemented Interfaces:
    ApplicationEvent, ApplicationEvent.ApplicationEventBuilder, org.refcodes.eventbus.GenericBusEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>, org.refcodes.eventbus.GenericBusEvent.GenericBusEventBuilder<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>, org.refcodes.mixin.ActionAccessor<Enum<?>>, org.refcodes.mixin.ActionAccessor.ActionBuilder<Enum<?>,org.refcodes.mixin.EventMetaData>, org.refcodes.mixin.ActionAccessor.ActionMutator<Enum<?>>, org.refcodes.mixin.ActionAccessor.ActionProperty<Enum<?>>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.AliasAccessor.AliasBuilder<Enum<?>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty, org.refcodes.mixin.ChannelAccessor, org.refcodes.mixin.ChannelAccessor.ChannelBuilder<Enum<?>>, org.refcodes.mixin.ChannelAccessor.ChannelMutator, org.refcodes.mixin.ChannelAccessor.ChannelProperty, org.refcodes.mixin.EventMetaData, org.refcodes.mixin.EventMetaData.EventMetaDataBuilder, org.refcodes.mixin.GroupAccessor, org.refcodes.mixin.GroupAccessor.GroupBuilder<Enum<?>>, org.refcodes.mixin.GroupAccessor.GroupMutator, org.refcodes.mixin.GroupAccessor.GroupProperty, org.refcodes.mixin.MetaDataAccessor<Enum<?>>, org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<Enum<?>,org.refcodes.mixin.EventMetaData>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<Enum<?>>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<Enum<?>>, org.refcodes.mixin.SourceAccessor<Enum<?>>, org.refcodes.mixin.UniversalIdAccessor, org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<Enum<?>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty, org.refcodes.observer.GenericActionEvent<Enum<?>,org.refcodes.mixin.EventMetaData>, org.refcodes.observer.GenericActionMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>, org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>, org.refcodes.observer.GenericEvent<Enum<?>>, org.refcodes.observer.GenericMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData>


    public class ApplicationEventBuilderImpl
    extends org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>
    implements ApplicationEvent.ApplicationEventBuilder
    Intuitive Meta-Class for the ActionMetaDataEventBuilderImpl as used by the ApplicationBus.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.refcodes.observer.AbstractActionMetaDataEvent

        org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<A extends Object,EM extends org.refcodes.mixin.EventMetaData,SRC extends 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.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.mixin.EventMetaData

        org.refcodes.mixin.EventMetaData.EventMetaDataBuilder
      • Nested classes/interfaces inherited from interface org.refcodes.observer.GenericActionMetaDataEvent

        org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A extends Object,EM extends org.refcodes.mixin.EventMetaData,SRC extends 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 Object,META extends org.refcodes.mixin.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 Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.refcodes.mixin.EventMetaData.EventMetaDataBuilder getMetaData​()
      void setAlias​(String aAlias)
      void setChannel​(String aChannel)
      void setGroup​(String aGroup)
      void setMetaData​(org.refcodes.mixin.EventMetaData aMetaData)
      void setPublisherType​(Class<?> aPublisherType)
      void setUniversalId​(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.mixin.ActionAccessor.ActionMutator

        setAction
      • Methods inherited from interface org.refcodes.mixin.AliasAccessor

        getAlias
      • Methods inherited from interface org.refcodes.mixin.ChannelAccessor

        getChannel
      • Methods inherited from interface org.refcodes.mixin.EventMetaData

        getPublisherType
      • Methods inherited from interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder

        withAction, withAlias, withChannel, withGroup, withMetaData, withPublisherType, withUniversalId
      • Methods inherited from interface org.refcodes.mixin.GroupAccessor

        getGroup
      • Methods inherited from interface org.refcodes.mixin.SourceAccessor

        getSource
      • Methods inherited from interface org.refcodes.mixin.UniversalIdAccessor

        getUniversalId
    • Constructor Detail

      • ApplicationEventBuilderImpl

        public ApplicationEventBuilderImpl​(Enum<?> aAction,
                                           org.refcodes.mixin.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​(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.mixin.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​(Enum<?> aAction,
                                           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​(Enum<?> aAction,
                                           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​(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.
        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​(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​(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​(String aAlias,
                                           String aGroup,
                                           String aChannel,
                                           String aUid,
                                           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​(Class<?> aPublisherType)
        Specified by:
        setPublisherType in interface org.refcodes.mixin.EventMetaData.EventMetaDataBuilder
      • setUniversalId

        public void setUniversalId​(String aUid)
        Specified by:
        setUniversalId in interface org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator
      • setAlias

        public void setAlias​(String aAlias)
        Specified by:
        setAlias in interface org.refcodes.mixin.AliasAccessor.AliasMutator
      • setGroup

        public void setGroup​(String aGroup)
        Specified by:
        setGroup in interface org.refcodes.mixin.GroupAccessor.GroupMutator
      • setChannel

        public void setChannel​(String aChannel)
        Specified by:
        setChannel in interface org.refcodes.mixin.ChannelAccessor.ChannelMutator
      • setMetaData

        public void setMetaData​(org.refcodes.mixin.EventMetaData aMetaData)
        Specified by:
        setMetaData in interface org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<Enum<?>>
      • getMetaData

        public org.refcodes.mixin.EventMetaData.EventMetaDataBuilder getMetaData​()
        Specified by:
        getMetaData in interface org.refcodes.mixin.MetaDataAccessor<Enum<?>>
        Overrides:
        getMetaData in class org.refcodes.observer.AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus,ApplicationEvent.ApplicationEventBuilder>