public class DefaultPersistenceHookRegistry extends java.lang.Object implements PersistenceHookRegistry
PersistenceHookRegistry, which loads persistence hooks from the Spring
application context. Spring Bean names/ids become names of the hooks in this registry.| Constructor and Description |
|---|
DefaultPersistenceHookRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHook(java.lang.String hookName,
PostPersistHook hook) |
void |
addHook(java.lang.String hookName,
PrePersistHook hook) |
protected <T> T |
getHook(java.util.Map<java.lang.String,T> hooks,
java.lang.String prefix,
java.lang.String hookName,
java.lang.String integrationKey) |
PostPersistHook |
getPostPersistHook(java.lang.String hookName,
java.lang.String integrationKey)
Retrieves a
PostPersistHook by the hook name. |
PrePersistHook |
getPrePersistHook(java.lang.String hookName,
java.lang.String integrationKey)
Retrieves a
PrePersistHook by the hook name. |
void |
setApplicationContext(ApplicationContext applicationContext) |
public PrePersistHook getPrePersistHook(java.lang.String hookName, java.lang.String integrationKey)
PersistenceHookRegistryPrePersistHook by the hook name.getPrePersistHook in interface PersistenceHookRegistryhookName - 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 updatedpublic PostPersistHook getPostPersistHook(java.lang.String hookName, java.lang.String integrationKey)
PersistenceHookRegistryPostPersistHook by the hook name.getPostPersistHook in interface PersistenceHookRegistryhookName - 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 updatedpublic void addHook(java.lang.String hookName,
PrePersistHook hook)
public void addHook(java.lang.String hookName,
PostPersistHook hook)
protected <T> T getHook(java.util.Map<java.lang.String,T> hooks,
java.lang.String prefix,
java.lang.String hookName,
java.lang.String integrationKey)
public void setApplicationContext(ApplicationContext applicationContext)
Copyright © 2018 SAP SE. All Rights Reserved.