Class EventMetaDataBuilderImpl

  • All Implemented Interfaces:
    org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.AliasAccessor.AliasBuilder<EventMetaData.EventMetaDataBuilder>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty, org.refcodes.mixin.ChannelAccessor, org.refcodes.mixin.ChannelAccessor.ChannelBuilder<EventMetaData.EventMetaDataBuilder>, org.refcodes.mixin.ChannelAccessor.ChannelMutator, org.refcodes.mixin.ChannelAccessor.ChannelProperty, org.refcodes.mixin.GroupAccessor, org.refcodes.mixin.GroupAccessor.GroupBuilder<EventMetaData.EventMetaDataBuilder>, org.refcodes.mixin.GroupAccessor.GroupMutator, org.refcodes.mixin.GroupAccessor.GroupProperty, org.refcodes.mixin.UniversalIdAccessor, org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<EventMetaData.EventMetaDataBuilder>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty, EventMetaData, EventMetaData.EventMetaDataBuilder


    public class EventMetaDataBuilderImpl
    extends java.lang.Object
    implements EventMetaData.EventMetaDataBuilder
    • Nested Class Summary

      • 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.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.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 Detail

      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​()
        Constructs the EventMetaData with no properties set except the Universal-ID. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.Class<?> aPublisherType)
        Constructs the EventMetaData with the given properties. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
        Parameters:
        aPublisherType - The type of the publisher.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.String aAlias,
                                        java.lang.String aGroup,
                                        java.lang.String aChannel,
                                        java.lang.Class<?> aPublisherType)
        Constructs the EventMetaData with the given properties. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
        Parameters:
        aAlias - The alias for the EventMetaData.
        aGroup - The group for the EventMetaData.
        aChannel - The channel for the EventMetaData.
        aPublisherType - The name for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.String aAlias,
                                        java.lang.String aGroup,
                                        java.lang.String aChannel)
        Constructs the EventMetaData with the given properties. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
        Parameters:
        aAlias - The alias for the EventMetaData.
        aGroup - The group for the EventMetaData.
        aChannel - The channel for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.String aAlias,
                                        java.lang.String aGroup)
        Constructs the EventMetaData with the given properties. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
        Parameters:
        aAlias - The alias for the EventMetaData.
        aGroup - The group for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.String aChannel)
        Constructs the EventMetaData with the given properties. The Universal-ID is set by invoking the UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next() method.
        Parameters:
        aChannel - The channel for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(java.lang.String aAlias,
                                        java.lang.String aGroup,
                                        java.lang.String aChannel,
                                        java.lang.String aUid,
                                        java.lang.Class<?> aPublisherType)
        Constructs the EventMetaData with the given properties.
        Parameters:
        aAlias - The alias for the EventMetaData.
        aGroup - The group for the EventMetaData.
        aChannel - The channel for the EventMetaData.
        aUid - The Universal-ID for the EventMetaData.
        aPublisherType - The name for the EventMetaData.
      • EventMetaDataBuilderImpl

        public EventMetaDataBuilderImpl​(EventMetaData aMetaData)
        Constructs the EventMetaData with the properties provided by the given EventMetaData instance.
        Parameters:
        aMetaData - The EventMetaData instance from which to get the properties.
    • Method Detail

      • getChannel

        public java.lang.String getChannel​()
        Specified by:
        getChannel in interface org.refcodes.mixin.ChannelAccessor
      • getGroup

        public java.lang.String getGroup​()
        Specified by:
        getGroup in interface org.refcodes.mixin.GroupAccessor
      • getAlias

        public java.lang.String getAlias​()
        Specified by:
        getAlias in interface org.refcodes.mixin.AliasAccessor
      • getPublisherType

        public java.lang.Class<?> getPublisherType​()
        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:
        getPublisherType in interface EventMetaData
        Returns:
        The type of the publisher who published the event.
      • getUniversalId

        public java.lang.String getUniversalId​()
        Specified by:
        getUniversalId in interface org.refcodes.mixin.UniversalIdAccessor
      • setChannel

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

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

        public void setAlias​(java.lang.String aAlias)
        Specified by:
        setAlias in interface org.refcodes.mixin.AliasAccessor.AliasMutator
      • 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