public class TransactionManagerPostProcessor extends java.lang.Object implements org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.PriorityOrdered
Injects the platform transaction manager into beans that implement TransactionManagerAware.
Modifiers | Name | Description |
---|---|---|
private org.springframework.beans.factory.config.ConfigurableListableBeanFactory |
beanFactory |
|
private boolean |
initialized |
|
private int |
order |
|
private org.springframework.transaction.PlatformTransactionManager |
transactionManager |
Type Params | Return Type | Name and description |
---|---|---|
|
public int |
getOrder() |
|
private void |
initialize() |
|
public 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. |
|
public void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Gets the platform transaction manager from the bean factory if there is one. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Injects the platform transaction manager into the given bean if that bean implements the TransactionManagerAware interface.
bean
- The bean to process.name
- The name of the bean.Gets the platform transaction manager from the bean factory if there is one.
beanFactory
- The bean factory handling this post processor.