public class SessionBeanDefinitionRegistrarPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.dao.support.PersistenceExceptionTranslator
BeanFactoryPostProcessor to register a SessionFactoryBeanDefinition for the
SessionFactory bean definition found in the application context to enable autowiring
Session instances into constructor arguments.
A PersistenceExceptionTranslator is added so it gets automatically registered with the Spring exception translation infrastructure.
| Constructor and Description |
|---|
SessionBeanDefinitionRegistrarPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
org.springframework.dao.DataAccessException |
translateExceptionIfPossible(RuntimeException ex) |
public SessionBeanDefinitionRegistrarPostProcessor()
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic org.springframework.dao.DataAccessException translateExceptionIfPossible(RuntimeException ex)
translateExceptionIfPossible in interface org.springframework.dao.support.PersistenceExceptionTranslatorCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.