T
- The elide entity type associated with this callback.@FunctionalInterface public interface LifeCycleHook<T>
Modifier and Type | Method and Description |
---|---|
void |
execute(LifeCycleHookBinding.Operation operation,
LifeCycleHookBinding.TransactionPhase phase,
T elideEntity,
RequestScope requestScope,
Optional<ChangeSpec> changes)
Run for a lifecycle event.
|
void execute(LifeCycleHookBinding.Operation operation, LifeCycleHookBinding.TransactionPhase phase, T elideEntity, RequestScope requestScope, Optional<ChangeSpec> changes)
operation
- CREATE, READ, UPDATE, or DELETEphase
- PRESECURITY, PRECOMMIT or POSTCOMMITelideEntity
- The entity that triggered the eventrequestScope
- The request scopechanges
- Optionally, the changes that were made to the entityCopyright © 2015–2021 Yahoo! Inc.. All rights reserved.