Class BusEventImpl

  • All Implemented Interfaces:
    BusEvent, GenericBusEvent<Enum<?>,org.refcodes.mixin.EventMetaData,EventBus>, org.refcodes.mixin.ActionAccessor<Enum<?>>, org.refcodes.mixin.MetaDataAccessor<Enum<?>>, org.refcodes.mixin.SourceAccessor<Enum<?>>, org.refcodes.observer.GenericActionEvent<Enum<?>,org.refcodes.mixin.EventMetaData>, org.refcodes.observer.GenericActionMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData,EventBus>, org.refcodes.observer.GenericEvent<Enum<?>>, org.refcodes.observer.GenericMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData>


    public class BusEventImpl
    extends org.refcodes.observer.AbstractActionMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData,EventBus>
    implements BusEvent
    Intuitive Meta-Class for the ActionMetaDataEventImpl as used by the EventBus.
    • 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.ActionAccessor

        org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>
      • 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.mixin.MetaDataAccessor

        org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD extends Object,B extends org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD,B>>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<MD extends Object>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<MD extends Object>
      • 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>
    • 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
      BusEventImpl​(Class<?> aPublisherType, EventBus aSource)
      Constructs an event with predefined values for the according properties retrieved from the caller's class.
      BusEventImpl​(Enum<?> aAction, Class<?> aPublisherType, EventBus aSource)
      Constructs an event with predefined values for the according properties retrieved from the caller's class.
      BusEventImpl​(Enum<?> aAction, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource)
      Constructs an event with the given values for the according properties.
      BusEventImpl​(Enum<?> aAction, String aChannel, EventBus aSource)
      Constructs an event with predefined values for the according properties retrieved from the caller's class.
      BusEventImpl​(Enum<?> aAction, EventBus aSource)
      Constructs an event with the given Meta-Data.
      BusEventImpl​(Enum<?> aAction, org.refcodes.mixin.EventMetaData aEventMetaData, EventBus aSource)
      Constructs an event with the given Meta-Data.
      BusEventImpl​(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, EventBus aSource)
      Constructs an event with the given values for the according properties.
      BusEventImpl​(String aChannel, EventBus aSource)
      Constructs an event with predefined values for the according properties retrieved from the caller's class.
      BusEventImpl​(EventBus aSource)
      Constructs an event with the given Meta-Data.
      BusEventImpl​(org.refcodes.mixin.EventMetaData aEventMetaData, EventBus aSource)
      Constructs an event with the given Meta-Data.
    • Method Summary

      • Methods inherited from class org.refcodes.observer.AbstractActionEvent

        getAction
      • Methods inherited from class org.refcodes.observer.AbstractActionMetaDataEvent

        getMetaData, toString
      • Methods inherited from class org.refcodes.observer.AbstractEvent

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

        getAction
      • Methods inherited from interface org.refcodes.mixin.MetaDataAccessor

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

        getSource
    • Constructor Detail

      • BusEventImpl

        public BusEventImpl​(Class<?> aPublisherType,
                            EventBus 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.
      • BusEventImpl

        public BusEventImpl​(Enum<?> aAction,
                            Class<?> aPublisherType,
                            EventBus 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.
      • BusEventImpl

        public BusEventImpl​(Enum<?> aAction,
                            org.refcodes.mixin.EventMetaData aEventMetaData,
                            EventBus 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.
      • BusEventImpl

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

        public BusEventImpl​(Enum<?> aAction,
                            String aChannel,
                            EventBus 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.
      • BusEventImpl

        public BusEventImpl​(Enum<?> aAction,
                            String aAlias,
                            String aGroup,
                            String aChannel,
                            String aUid,
                            Class<?> aPublisherType,
                            EventBus 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.
      • BusEventImpl

        public BusEventImpl​(org.refcodes.mixin.EventMetaData aEventMetaData,
                            EventBus 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.
      • BusEventImpl

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

        public BusEventImpl​(String aChannel,
                            EventBus 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.
      • BusEventImpl

        public BusEventImpl​(String aAlias,
                            String aGroup,
                            String aChannel,
                            String aUid,
                            Class<?> aPublisherType,
                            EventBus 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.