Class ActionPayloadMetaDataEventBuilderImpl<P>

    • Constructor Detail

      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(java.lang.Enum<?> aAction,
                                                     EventMetaData aEventMetaData,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aAction - The action which this represents.
        aEventMetaData - The Meta-Data to by supplied by the event.
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(java.lang.Enum<?> aAction,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aAction - The action which this represents.
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(java.lang.Enum<?> aAction,
                                                     P aPayload,
                                                     EventMetaData aEventMetaData,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aAction - The action which the event represents.
        aPayload - The payload to be carried by the event.
        aEventMetaData - The Meta-Data to by supplied by the event.
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(java.lang.Enum<?> aAction,
                                                     P aPayload,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aAction - The action which the event represents.
        aPayload - The payload to be carried by the event.
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(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.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(P aPayload,
                                                     EventMetaData aEventMetaData,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aPayload - The payload to be carried by the event.
        aEventMetaData - The Meta-Data to by supplied by the event.
        aSource - The source from which this event originated.
      • ActionPayloadMetaDataEventBuilderImpl

        public ActionPayloadMetaDataEventBuilderImpl​(P aPayload,
                                                     java.lang.Object aSource)
        Constructs an event with the given Meta-Data.
        Parameters:
        aPayload - The payload to be carried by the event.
        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:
        setPublisherType in interface EventMetaData.EventMetaDataBuilder
        Parameters:
        aPublisherType - The type of the publisher who published the event.
      • setUniversalId

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

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

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

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

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