Interface PersistenceHookRegistry
-
- All Known Implementing Classes:
DefaultPersistenceHookRegistry
public interface PersistenceHookRegistryA registry which contains all Pre and Post persistence hooks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PostPersistHookgetPostPersistHook(java.lang.String hookName, java.lang.String integrationKey)Retrieves aPostPersistHookby the hook name.PrePersistHookgetPrePersistHook(java.lang.String hookName, java.lang.String integrationKey)Retrieves aPrePersistHookby the hook name.
-
-
-
Method Detail
-
getPrePersistHook
PrePersistHook getPrePersistHook(java.lang.String hookName, java.lang.String integrationKey)
Retrieves aPrePersistHookby the hook name.- Parameters:
hookName- name of the hook to retrieve. It's up to the implementation what that name means and how hooks are named.integrationKey- for the current item that is being created or updated- Returns:
- a hook matching the name.
-
getPostPersistHook
PostPersistHook getPostPersistHook(java.lang.String hookName, java.lang.String integrationKey)
Retrieves aPostPersistHookby the hook name.- Parameters:
hookName- name of the hook to retrieve. It's up to implementation what that name means and how hooks are named.integrationKey- for the current item that is being created or updated- Returns:
- a hook matching the name.
-
-