public class SamplePostPersistHook extends ExternalResource implements PostPersistHook
| Constructor and Description |
|---|
SamplePostPersistHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
execute(ItemModel item)
Executes this hook after persisting the given item.
|
void |
givenDoesInExecute(java.util.function.Consumer<ItemModel> proc) |
boolean |
isExecuted() |
void |
setHookRegistry(DefaultPersistenceHookRegistry registry) |
public void execute(ItemModel item)
PostPersistHookexecute in interface PostPersistHookitem - an item to execute this hook withpublic boolean isExecuted()
public void givenDoesInExecute(java.util.function.Consumer<ItemModel> proc)
public void after()
public void setHookRegistry(DefaultPersistenceHookRegistry registry)
Copyright © 2018 SAP SE. All Rights Reserved.