@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=LifeCycleHookBindings.class) public @interface LifeCycleHookBinding
Modifier and Type | Required Element and Description |
---|---|
Class<? extends LifeCycleHook> |
hook
The function to invoke when this life cycle triggers.
|
LifeCycleHookBinding.Operation |
operation
Which CRUD operation to trigger on.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
oncePerRequest
Controls how often the hook is invoked:
A hook is invoked once per class per request (when bound to the model).
|
LifeCycleHookBinding.TransactionPhase |
phase
Which transaction phase to trigger on.
|
public abstract Class<? extends LifeCycleHook> hook
public abstract LifeCycleHookBinding.Operation operation
public abstract LifeCycleHookBinding.TransactionPhase phase
public abstract boolean oncePerRequest
Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.