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
ConstructorsConstructorDescriptionCreates a newPersistenceExceptionTranslationRepositoryProxyPostProcessorusing the givenListableBeanFactory. -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcess(ProxyFactory factory, RepositoryInformation repositoryInformation) Manipulates theProxyFactory, e.g. add further interceptors to it.
-
Constructor Details
-
PersistenceExceptionTranslationRepositoryProxyPostProcessor
Creates a newPersistenceExceptionTranslationRepositoryProxyPostProcessorusing the givenListableBeanFactory.- Parameters:
beanFactory- must not be null.
-
-
Method Details
-
postProcess
Description copied from interface:RepositoryProxyPostProcessorManipulates theProxyFactory, e.g. add further interceptors to it.- Specified by:
postProcessin interfaceRepositoryProxyPostProcessor- Parameters:
factory- will never be null.repositoryInformation- will never be null.
-