A - The type of the action stored in the event.SRC - The type of the source in question.public class MetaDataActionEventImpl<A,SRC> extends AbstractActionEvent<A,SRC> implements MetaDataActionEvent<A,SRC>
ActionEvent storing a defined set of
EventMetaData.
TIPP: In order to distinguish MetaDataActionEventImpl 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).
| Constructor and Description |
|---|
MetaDataActionEventImpl(A aAction,
SRC aSource)
Constructs an event with the given meta Data.
|
MetaDataActionEventImpl(EventMetaData aEventMetaData,
A aAction,
SRC aSource)
Constructs an event with the given meta Data.
|
MetaDataActionEventImpl(EventMetaData aEventMetaData,
SRC aSource)
Constructs an event with the given meta Data.
|
MetaDataActionEventImpl(SRC aSource)
Constructs an event with the given meta Data.
|
MetaDataActionEventImpl(String channel,
SRC aSource)
Constructs an event with the given meta Data.
|
| Modifier and Type | Method and Description |
|---|---|
EventMetaData |
getMetaData() |
getActiongetSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActionpublic MetaDataActionEventImpl(EventMetaData aEventMetaData, SRC aSource)
aEventMetaData - The meta data to by supplied by the event.aSource - The source from which this event originated.public MetaDataActionEventImpl(String channel, SRC aSource)
channel - The value for ChannelAccessor.getChannel()
attribute.aSource - The source from which this event originated.public MetaDataActionEventImpl(EventMetaData aEventMetaData, A aAction, SRC aSource)
aEventMetaData - The meta data to by supplied by the event.aAction - The action which the ActionEvent represents.aSource - The source from which this event originated.public MetaDataActionEventImpl(A aAction, SRC aSource)
aAction - The action which the ActionEvent represents.aSource - The source from which this event originated.public MetaDataActionEventImpl(SRC aSource)
aSource - The source from which this event originated.public EventMetaData getMetaData()
getMetaData in interface org.refcodes.mixin.MetaDataAccessor<EventMetaData>Copyright © 2018. All rights reserved.