Class PersistenceExceptionTranslationRepositoryProxyPostProcessor
java.lang.Object
org.springframework.data.repository.core.support.PersistenceExceptionTranslationRepositoryProxyPostProcessor
- All Implemented Interfaces:
RepositoryProxyPostProcessor
public class PersistenceExceptionTranslationRepositoryProxyPostProcessor
extends Object
implements RepositoryProxyPostProcessor
RepositoryProxyPostProcessor
to register a PersistenceExceptionTranslationInterceptor
on the
repository proxy.- Author:
- Oliver Gierke, Johannes Englmeier
-
Constructor Summary
ConstructorDescriptionCreates a newPersistenceExceptionTranslationRepositoryProxyPostProcessor
using the givenListableBeanFactory
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
postProcess
(ProxyFactory factory, RepositoryInformation repositoryInformation) Manipulates theProxyFactory
, e.g. add further interceptors to it.
-
Constructor Details
-
PersistenceExceptionTranslationRepositoryProxyPostProcessor
Creates a newPersistenceExceptionTranslationRepositoryProxyPostProcessor
using the givenListableBeanFactory
.- Parameters:
beanFactory
- must not be null.
-
-
Method Details
-
postProcess
Description copied from interface:RepositoryProxyPostProcessor
Manipulates theProxyFactory
, e.g. add further interceptors to it.- Specified by:
postProcess
in interfaceRepositoryProxyPostProcessor
- Parameters:
factory
- will never be null.repositoryInformation
- will never be null.
-