Class SamplePostPersistHook
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- de.hybris.platform.odata2webservices.odata.persistence.hooks.SamplePostPersistHook
-
- All Implemented Interfaces:
PostPersistHook,org.junit.rules.TestRule
public class SamplePostPersistHook extends org.junit.rules.ExternalResource implements PostPersistHook
-
-
Constructor Summary
Constructors Constructor Description SamplePostPersistHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidexecute(ItemModel item)Executes this hook after persisting the given item.voidgivenDoesInExecute(java.util.function.Consumer<ItemModel> proc)booleanisExecuted()voidsetHookRegistry(DefaultPersistenceHookRegistry registry)
-
-
-
Method Detail
-
execute
public void execute(ItemModel item)
Description copied from interface:PostPersistHookExecutes this hook after persisting the given item.- Specified by:
executein interfacePostPersistHook- Parameters:
item- an item to execute this hook with
-
isExecuted
public boolean isExecuted()
-
givenDoesInExecute
public void givenDoesInExecute(java.util.function.Consumer<ItemModel> proc)
-
after
public void after()
- Overrides:
afterin classorg.junit.rules.ExternalResource
-
setHookRegistry
public void setHookRegistry(DefaultPersistenceHookRegistry registry)
-
-