Interface PersistenceHookRegistry
- All Known Implementing Classes:
DefaultPersistenceHookRegistry
public interface PersistenceHookRegistry
A registry which contains all Pre and Post persistence hooks.
-
Method Summary
Modifier and TypeMethodDescriptiongetPostPersistHook(String hookName, String integrationKey) Retrieves aPostPersistHookby the hook name.getPrePersistHook(String hookName, String integrationKey) Retrieves aPrePersistHookby the hook name.
-
Method Details
-
getPrePersistHook
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
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.
-