Package org.refcodes.observer
Class AbstractActionPayloadEvent<A,P,SRC>
- java.lang.Object
-
- org.refcodes.observer.AbstractEvent<SRC>
-
- org.refcodes.observer.AbstractActionEvent<A,SRC>
-
- org.refcodes.observer.AbstractActionPayloadEvent<A,P,SRC>
-
- Type Parameters:
A- The type of the action stored in the event.P- The type of the payload to be carried.SRC- The type of the source in question.
- All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<A>,org.refcodes.mixin.PayloadAccessor<A>,org.refcodes.mixin.SourceAccessor<A>,GenericActionEvent<A,P>,GenericActionPayloadEvent<A,P,SRC>,GenericEvent<A>,GenericPayloadEvent<A,P>
- Direct Known Subclasses:
ActionPayloadEventImpl
public abstract class AbstractActionPayloadEvent<A,P,SRC> extends AbstractActionEvent<A,SRC> implements GenericActionPayloadEvent<A,P,SRC>
Basic implementation of theGenericActionPayloadEvent.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.PayloadAccessor
org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends java.lang.Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P,B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends java.lang.Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected P_payload-
Fields inherited from class org.refcodes.observer.AbstractActionEvent
_action
-
-
Constructor Summary
Constructors Constructor Description AbstractActionPayloadEvent(A aAction, P aPayload, SRC aSource)Constructs an event with the given Meta-Data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgetPayload()-
Methods inherited from class org.refcodes.observer.AbstractActionEvent
getAction
-
Methods inherited from class org.refcodes.observer.AbstractEvent
getSource
-
-
-
-
Field Detail
-
_payload
protected P _payload
-
-
Constructor Detail
-
AbstractActionPayloadEvent
public AbstractActionPayloadEvent(A aAction, P aPayload, SRC aSource)
Constructs an event with the given Meta-Data.- Parameters:
aAction- The action which theGenericActionEventrepresents.aPayload- The payload to be carried by the event.aSource- The source from which this event originated.
-
-