Class EventMetaData

java.lang.Object
org.refcodes.observer.EventMetaData
All Implemented Interfaces:
org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.ChannelAccessor, org.refcodes.mixin.GroupAccessor, org.refcodes.mixin.UniversalIdAccessor, PublisherTypeAccessor

public class EventMetaData extends Object implements org.refcodes.mixin.UniversalIdAccessor, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.GroupAccessor, org.refcodes.mixin.ChannelAccessor, PublisherTypeAccessor
The Meta-Data describes the event which a publisher posts via the event bus to an event subscriber's event listener. The Meta-Data is the criteria most commonly used by an event matcher in order to identify an loosely coupled event.
  • Field Details

    • _alias

      protected String _alias
    • _channel

      protected String _channel
    • _group

      protected String _group
    • _uid

      protected String _uid
    • _publisherType

      protected Class<?> _publisherType
  • Constructor Details

  • Method Details

    • getAlias

      public String getAlias()
      Specified by:
      getAlias in interface org.refcodes.mixin.AliasAccessor
    • getChannel

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

      public String getGroup()
      Specified by:
      getGroup in interface org.refcodes.mixin.GroupAccessor
    • getPublisherType

      public Class<?> getPublisherType()
      Retrieves the publisher's type property.
      Specified by:
      getPublisherType in interface PublisherTypeAccessor
      Returns:
      The publisher's type stored by the property.
    • getUniversalId

      public String getUniversalId()
      Specified by:
      getUniversalId in interface org.refcodes.mixin.UniversalIdAccessor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static EventMetaData.Builder builder()
      Creates builder to build EventMetaData.
      Returns:
      created builder