public class TargetClassLoaderTransactionProxyFactoryBean
extends org.springframework.transaction.interceptor.TransactionProxyFactoryBean
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.| Constructor and Description |
|---|
TargetClassLoaderTransactionProxyFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
setTarget(Object target)
Set the bean to be wrapped with a transactional proxy.
|
createMainInterceptor, postProcessProxyFactory, setBeanFactory, setPointcut, setTransactionAttributes, setTransactionAttributeSource, setTransactionManagerafterPropertiesSet, createTargetSource, getObject, getObjectType, isSingleton, setAdvisorAdapterRegistry, setBeanClassLoader, setPostInterceptors, setPreInterceptors, setProxyClassLoader, setProxyInterfacespublic TargetClassLoaderTransactionProxyFactoryBean()
public void setTarget(Object target)
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.
setTarget in class org.springframework.aop.framework.AbstractSingletonProxyFactoryBeantarget - the object that will be wrapped with a transactional argument. Must not be null.IllegalArgumentException - if the target parameter is nullCopyright © 2003–2018 Atlassian. All rights reserved.