A
- The type of the action stored in the event.EM
- The type of the EventMetaDataSRC
- The type of the source in question.org.refcodes.mixin.ActionAccessor<A>
, org.refcodes.mixin.MetaDataAccessor<EM>
, org.refcodes.mixin.SourceAccessor<SRC>
, GenericActionEvent<A,SRC>
, GenericActionMetaDataEvent<A,EM,SRC>
, GenericEvent<SRC>
, GenericMetaDataEvent<EM,SRC>
AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder
, AbstractActionPayloadMetaDataEvent
, ActionMetaDataEventImpl
public abstract class AbstractActionMetaDataEvent<A,EM extends EventMetaData,SRC> extends AbstractActionEvent<A,SRC> implements GenericActionMetaDataEvent<A,EM,SRC>
GenericActionEvent
storing a defined set of
EventMetaData
.
TIPP: In order to distinguish AbstractActionMetaDataEvent
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).
Modifier and Type | Class | Description |
---|---|---|
static class |
AbstractActionMetaDataEvent.AbstractActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>> |
Implementation of the
GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder interface
for easily creating ActionMetaDataEvent instances. |
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>
GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
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 |
_action
Constructor | Description |
---|---|
AbstractActionMetaDataEvent(A aAction,
EM aEventMetaData,
SRC aSource) |
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(A aAction,
SRC aSource) |
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(EM aEventMetaData,
SRC aSource) |
Constructs an event with the given Meta-Data.
|
AbstractActionMetaDataEvent(SRC aSource) |
Constructs an event with the given Meta-Data.
|
Modifier and Type | Method | Description |
---|---|---|
EM |
getMetaData() |
|
String |
toString() |
getAction
getSource
protected EM extends EventMetaData _eventMetaData
public AbstractActionMetaDataEvent(EM aEventMetaData, SRC aSource)
aEventMetaData
- The Meta-Data to by supplied by the event.aSource
- The source from which this event originated.public AbstractActionMetaDataEvent(A aAction, EM aEventMetaData, SRC aSource)
aAction
- The action which the event represents.aEventMetaData
- The Meta-Data to by supplied by the event.aSource
- The source from which this event originated.public AbstractActionMetaDataEvent(A aAction, SRC aSource)
aAction
- The action which the event represents.aSource
- The source from which this event originated.public AbstractActionMetaDataEvent(SRC aSource)
aSource
- The source from which this event originated.Copyright © 2018. All rights reserved.