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 |
|---|---|
protected Object |
getProxy(org.springframework.aop.framework.AopProxy proxy)
Returns the proxy object to expose.
|
void |
setTarget(Object target)
Set the bean to be wrapped with a transactional proxy.
|
createMainInterceptor, setBeanFactory, setPointcut, setTransactionAttributes, setTransactionAttributeSource, setTransactionManagerafterPropertiesSet, createTargetSource, getObject, getObjectType, isSingleton, setAdvisorAdapterRegistry, setBeanClassLoader, setPostInterceptors, setPreInterceptors, setProxyClassLoader, setProxyInterfacescopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toStringpublic TargetClassLoaderTransactionProxyFactoryBean()
public void setTarget(Object target)
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 nullprotected Object getProxy(org.springframework.aop.framework.AopProxy proxy)
getProxy in class org.springframework.aop.framework.AbstractSingletonProxyFactoryBeanproxy - the prepared AopProxy instance to get the proxy fromCopyright © 2003–2015 Atlassian. All rights reserved.