Class AbstractTargetEvent<T>
java.lang.Object
org.craftercms.deployer.api.target.event.AbstractTargetEvent<T>
- Type Parameters:
T- the type of the payload
- All Implemented Interfaces:
TargetEvent<T>
- Direct Known Subclasses:
DeploymentRuntimeWarningEvent
Abstract base class for target events that carry a payload.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractTargetEvent(Target target, T payload) Constructor for creating an event with a target and a payload. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.craftercms.deployer.api.target.event.TargetEvent
eventType
-
Constructor Details
-
AbstractTargetEvent
Constructor for creating an event with a target and a payload.- Parameters:
target- the target associated with the eventpayload- the payload of the event, which can be any type. The payload is typically used to carry additional data relevant to the event.
-
-
Method Details
-
payload
Description copied from interface:TargetEventThe payload of the event. This is the data that is associated with the event, to be processed by event listeners.- Specified by:
payloadin interfaceTargetEvent<T>- Returns:
- the payload of the event
-
target
Description copied from interface:TargetEventThe target associated with this event.- Specified by:
targetin interfaceTargetEvent<T>- Returns:
- the target
-