Class DefaultPersistenceHookRegistry
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.hook.impl.DefaultPersistenceHookRegistry
- All Implemented Interfaces:
PersistenceHookProvider,PersistenceHookRegistry,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Deprecated(since="2205",
forRemoval=true)
public class DefaultPersistenceHookRegistry
extends Object
implements PersistenceHookRegistry, org.springframework.context.ApplicationContextAware, PersistenceHookProvider
Deprecated, for removal: This API element is subject to removal in a future version.
An implementation of the
PersistenceHookRegistry, which loads persistence hooks from the Spring
application context. Spring Bean names/ids become names of the hooks in this registry.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHook(String hookName, PostPersistHook hook) Deprecated, for removal: This API element is subject to removal in a future version.voidaddHook(String hookName, PrePersistHook hook) Deprecated, for removal: This API element is subject to removal in a future version.protected <T> TDeprecated, for removal: This API element is subject to removal in a future version.getPostPersistHook(@NotNull PersistenceContext context) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves aPostPersistHookby the hook name.getPostPersistHook(String hookName, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves aPostPersistHookby the hook name.getPrePersistHook(@NotNull PersistenceContext context) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves aPrePersistHookby the hook name.getPrePersistHook(String hookName, String integrationKey) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves aPrePersistHookby the hook name.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
DefaultPersistenceHookRegistry
public DefaultPersistenceHookRegistry()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getPrePersistHook
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistenceHookRegistryRetrieves aPrePersistHookby the hook name.- Specified by:
getPrePersistHookin interfacePersistenceHookRegistry- 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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistenceHookRegistryRetrieves aPostPersistHookby the hook name.- Specified by:
getPostPersistHookin interfacePersistenceHookRegistry- 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.
-
addHook
Deprecated, for removal: This API element is subject to removal in a future version. -
addHook
Deprecated, for removal: This API element is subject to removal in a future version. -
getHook
Deprecated, for removal: This API element is subject to removal in a future version. -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getPrePersistHook
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistenceHookProviderRetrieves aPrePersistHookby the hook name.- Specified by:
getPrePersistHookin interfacePersistenceHookProvider- Parameters:
context- context of the data being persisted.- Returns:
- a hook matching the persistence context or an
Optional.empty(), if there is no hook for the provided context.
-
getPostPersistHook
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PersistenceHookProviderRetrieves aPostPersistHookby the hook name.- Specified by:
getPostPersistHookin interfacePersistenceHookProvider- Parameters:
context- context of the data being persisted.- Returns:
- a hook matching the persistence context or an
Optional.empty(), if there is no hook for the provided context..
-
PersistenceHookProviderinstead