Interface PersistenceHookRegistry

All Known Implementing Classes:
DefaultPersistenceHookRegistry

public interface PersistenceHookRegistry
A registry which contains all Pre and Post persistence hooks.
  • Method Details

    • getPrePersistHook

      PrePersistHook getPrePersistHook(String hookName, String integrationKey)
      Retrieves a PrePersistHook by 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(String hookName, String integrationKey)
      Retrieves a PostPersistHook by 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.