Class TargetClassLoaderTransactionProxyFactoryBean
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
org.springframework.transaction.interceptor.TransactionProxyFactoryBean
com.atlassian.confluence.spring.transaction.interceptor.TargetClassLoaderTransactionProxyFactoryBean
- All Implemented Interfaces:
- Serializable,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.BeanClassLoaderAware,- org.springframework.beans.factory.BeanFactoryAware,- org.springframework.beans.factory.FactoryBean<Object>,- org.springframework.beans.factory.InitializingBean
public class TargetClassLoaderTransactionProxyFactoryBean
extends org.springframework.transaction.interceptor.TransactionProxyFactoryBean
Proxy factory bean that extends 
TransactionProxyFactoryBean to use the class loader that the class of the
 target object was loaded from.  This can be used as a drop-in replacement for TransactionProxyFactoryBean
 in situations where the proxy interface is not visible in the current context class loader.  In particular, this is
 useful for creating transaction-wrapped beans in plugin descriptors.- Since:
- 2.9
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.springframework.transaction.interceptor.TransactionProxyFactoryBeancreateMainInterceptor, postProcessProxyFactory, setBeanFactory, setPointcut, setTransactionAttributes, setTransactionAttributeSource, setTransactionManagerMethods inherited from class org.springframework.aop.framework.AbstractSingletonProxyFactoryBeanafterPropertiesSet, createTargetSource, getObject, getObjectType, isSingleton, setAdvisorAdapterRegistry, setBeanClassLoader, setPostInterceptors, setPreInterceptors, setProxyClassLoader, setProxyInterfacesMethods inherited from class org.springframework.aop.framework.ProxyConfigcopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
- 
Constructor Details- 
TargetClassLoaderTransactionProxyFactoryBeanpublic TargetClassLoaderTransactionProxyFactoryBean()
 
- 
- 
Method Details- 
setTargetSet the bean to be wrapped with a transactional proxy.The target may be any object, in which case a SingletonTargetSource will be created. If it is a TargetSource, no wrapper TargetSource is created: This enables the use of a pooling or prototype TargetSource etc. - Overrides:
- setTargetin class- org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
- Parameters:
- target- the object that will be wrapped with a transactional argument. Must not be- null.
- Throws:
- IllegalArgumentException- if the- targetparameter is- null
 
 
-