public class EventMetaDataImpl extends Object implements EventMetaData
EventMetaData
interface. You might work in your domain driven framework with according
sub-types of the EventMetaData interface and the according
implementations of those.EventMetaData.EventMetaDataBuilderorg.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B extends org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdPropertyorg.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasPropertyorg.refcodes.mixin.GroupAccessor.GroupBuilder<B extends org.refcodes.mixin.GroupAccessor.GroupBuilder<B>>, org.refcodes.mixin.GroupAccessor.GroupMutator, org.refcodes.mixin.GroupAccessor.GroupPropertyorg.refcodes.mixin.ChannelAccessor.ChannelBuilder<B extends org.refcodes.mixin.ChannelAccessor.ChannelBuilder<B>>, org.refcodes.mixin.ChannelAccessor.ChannelMutator, org.refcodes.mixin.ChannelAccessor.ChannelProperty| Modifier and Type | Field and Description |
|---|---|
protected String |
_alias |
protected String |
_channel |
protected String |
_group |
protected Class<?> |
_publisherType |
protected String |
_uid |
| Constructor and Description |
|---|
EventMetaDataImpl()
Constructs the
EventMetaData with no properties set except the
Universal-ID. |
EventMetaDataImpl(Class<?> aPublisherType)
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(EventMetaData aMetaData)
Constructs the
EventMetaData with the properties provided by the
given EventMetaData instance. |
EventMetaDataImpl(String aChannel)
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(String aAlias,
String aGroup)
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(String aAlias,
String aGroup,
String aChannel)
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(String aAlias,
String aGroup,
String aChannel,
String aUid,
Class<?> aPublisherType)
Constructs the
EventMetaData with the given properties. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias() |
String |
getChannel() |
String |
getGroup() |
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.
|
String |
getUniversalId() |
String |
toString() |
protected String _uid
protected String _alias
protected String _group
protected String _channel
protected Class<?> _publisherType
public EventMetaDataImpl()
EventMetaData with no properties set except the
Universal-ID. The Universal-ID is set by invoking the
UniqueIdGeneratorSingleton's UniqueIdGeneratorImpl.next()
method.public EventMetaDataImpl(Class<?> aPublisherType)
EventMetaData with the given properties. The
Universal-ID is set by invoking the UniqueIdGeneratorSingleton's
UniqueIdGeneratorImpl.next() method.aPublisherType - The type of the publisher.public EventMetaDataImpl(String aAlias, String aGroup, String aChannel)
EventMetaData with the given properties. The
Universal-ID is set by invoking the UniqueIdGeneratorSingleton's
UniqueIdGeneratorImpl.next() method.aAlias - The alias for the EventMetaData.aGroup - The group for the EventMetaData.aChannel - The channel for the EventMetaData.public EventMetaDataImpl(String aAlias, String aGroup)
EventMetaData with the given properties. The
Universal-ID is set by invoking the UniqueIdGeneratorSingleton's
UniqueIdGeneratorImpl.next() method.aAlias - The alias for the EventMetaData.aGroup - The group for the EventMetaData.public EventMetaDataImpl(String aChannel)
EventMetaData with the given properties. The
Universal-ID is set by invoking the UniqueIdGeneratorSingleton's
UniqueIdGeneratorImpl.next() method.aChannel - The channel for the EventMetaData.public EventMetaDataImpl(String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType)
EventMetaData with the given properties.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.public EventMetaDataImpl(EventMetaData aMetaData)
EventMetaData with the properties provided by the
given EventMetaData instance.aMetaData - The EventMetaData instance from which to get the
properties.public String getUniversalId()
getUniversalId in interface org.refcodes.mixin.UniversalIdAccessorpublic String getAlias()
getAlias in interface org.refcodes.mixin.AliasAccessorpublic String getGroup()
getGroup in interface org.refcodes.mixin.GroupAccessorpublic String getChannel()
getChannel in interface org.refcodes.mixin.ChannelAccessorpublic Class<?> getPublisherType()
getPublisherType in interface EventMetaDataCopyright © 2018. All rights reserved.