EM
- The type of the EventMetaDataSRC
- The type of the source in question.org.refcodes.mixin.MetaDataAccessor<EM>
, org.refcodes.mixin.SourceAccessor<SRC>
, GenericEvent<SRC>
, GenericMetaDataEvent<EM,SRC>
AbstractPayloadMetaDataEvent
, MetaDataEventImpl
public abstract class AbstractMetaDataEvent<EM extends EventMetaData,SRC> extends AbstractEvent<SRC> implements GenericMetaDataEvent<EM,SRC>
GenericActionEvent
storing a defined set of
EventMetaData
.
TIPP: In order to distinguish AbstractMetaDataEvent
instances from
each other, create an actions enumeration, enumerating the various event
actions you support. Pass the actual action you intend to notify upon to the
according constructor, as an Observer
you may use the declarative
method EventMatcherSugar.actionEqualWith(Object)
to test whether your
action was notified (or a simple switch case statement).
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>
Modifier and Type | Field | Description |
---|---|---|
protected EM |
_eventMetaData |
Constructor | Description |
---|---|
AbstractMetaDataEvent(EM aEventMetaData,
SRC aSource) |
Constructs an event with the given Meta-Data.
|
AbstractMetaDataEvent(String channel,
SRC aSource) |
Constructs an event with the given Meta-Data.
|
AbstractMetaDataEvent(SRC aSource) |
Constructs an event with the given Meta-Data.
|
Modifier and Type | Method | Description |
---|---|---|
EM |
getMetaData() |
|
String |
toString() |
getSource
protected EM extends EventMetaData _eventMetaData
public AbstractMetaDataEvent(EM aEventMetaData, SRC aSource)
aEventMetaData
- The Meta-Data to by supplied by the event.aSource
- The source from which this event originated.public AbstractMetaDataEvent(String channel, SRC aSource)
channel
- The value for ChannelAccessor.getChannel()
attribute.aSource
- The source from which this event originated.public AbstractMetaDataEvent(SRC aSource)
aSource
- The source from which this event originated.Copyright © 2018. All rights reserved.