Interface PersistenceHookRegistry

  • All Known Implementing Classes:
    DefaultPersistenceHookRegistry

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

      • getPrePersistHook

        PrePersistHook getPrePersistHook​(java.lang.String hookName,
                                         java.lang.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​(java.lang.String hookName,
                                           java.lang.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.