public class TransactionManagerPostProcessor
extends InstantiationAwareBeanPostProcessorAdapter
TransactionManagerAware
.Constructor and Description |
---|
TransactionManagerPostProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
boolean |
postProcessAfterInstantiation(java.lang.Object bean,
java.lang.String name)
Injects the platform transaction manager into the given bean if
that bean implements the
TransactionManagerAware interface. |
void |
setBeanFactory(BeanFactory beanFactory)
Gets the platform transaction manager from the bean factory if
there is one.
|
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
beanFactory
- The bean factory handling this post processor.BeansException
public boolean postProcessAfterInstantiation(java.lang.Object bean, java.lang.String name) throws BeansException
TransactionManagerAware
interface.bean
- The bean to process.name
- The name of the bean.BeansException
public int getOrder()