org.refcodes.mixin.AliasAccessor
, org.refcodes.mixin.ChannelAccessor
, org.refcodes.mixin.GroupAccessor
, org.refcodes.mixin.UniversalIdAccessor
, EventMetaData
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.org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
org.refcodes.mixin.ChannelAccessor.ChannelBuilder<B extends org.refcodes.mixin.ChannelAccessor.ChannelBuilder<B>>, org.refcodes.mixin.ChannelAccessor.ChannelMutator, org.refcodes.mixin.ChannelAccessor.ChannelProperty
EventMetaData.EventMetaDataBuilder
org.refcodes.mixin.GroupAccessor.GroupBuilder<B extends org.refcodes.mixin.GroupAccessor.GroupBuilder<B>>, org.refcodes.mixin.GroupAccessor.GroupMutator, org.refcodes.mixin.GroupAccessor.GroupProperty
org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B extends org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
Modifier and Type | Field | Description |
---|---|---|
protected String |
_alias |
|
protected String |
_channel |
|
protected String |
_group |
|
protected Class<?> |
_publisherType |
|
protected String |
_uid |
Constructor | Description |
---|---|
EventMetaDataImpl() |
Constructs the
EventMetaData with no properties set except the
Universal-ID. |
EventMetaDataImpl(Class<?> aPublisherType) |
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(String aChannel) |
Constructs the
EventMetaData with the given properties. |
EventMetaDataImpl(String aChannel,
Class<?> aPublisherType) |
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. |
EventMetaDataImpl(EventMetaData aMetaData) |
Constructs the
EventMetaData with the properties provided by the
given EventMetaData instance. |
Modifier and Type | Method | 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(String aChannel, Class<?> aPublisherType)
EventMetaData
with the given properties.aChannel
- The channel 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.UniversalIdAccessor
public String getAlias()
getAlias
in interface org.refcodes.mixin.AliasAccessor
public String getGroup()
getGroup
in interface org.refcodes.mixin.GroupAccessor
public String getChannel()
getChannel
in interface org.refcodes.mixin.ChannelAccessor
public Class<?> getPublisherType()
getPublisherType
in interface EventMetaData
Copyright © 2018. All rights reserved.