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 |
Class Overview
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.
Summary
Public Methods |
void
|
setTarget(Object target)
Set the bean to be wrapped with a transactional proxy.
|
Protected Methods |
Object
|
getProxy(AopProxy proxy)
Returns the proxy object to expose.
|
[Expand]
Inherited Methods |
From class
org.springframework.transaction.interceptor.TransactionProxyFactoryBean
Object
|
createMainInterceptor()
|
void
|
setBeanFactory(BeanFactory arg0)
|
void
|
setPointcut(Pointcut arg0)
|
void
|
setTransactionAttributeSource(TransactionAttributeSource arg0)
|
void
|
setTransactionAttributes(Properties arg0)
|
void
|
setTransactionManager(PlatformTransactionManager arg0)
|
|
From class
org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
void
|
afterPropertiesSet()
|
abstract
Object
|
createMainInterceptor()
|
TargetSource
|
createTargetSource(Object arg0)
|
Object
|
getObject()
|
Class
|
getObjectType()
|
Object
|
getProxy(AopProxy arg0)
|
final
boolean
|
isSingleton()
|
void
|
setAdvisorAdapterRegistry(AdvisorAdapterRegistry arg0)
|
void
|
setBeanClassLoader(ClassLoader arg0)
|
void
|
setPostInterceptors(Object[] arg0)
|
void
|
setPreInterceptors(Object[] arg0)
|
void
|
setProxyClassLoader(ClassLoader arg0)
|
void
|
setProxyInterfaces(Class[] arg0)
|
void
|
setTarget(Object arg0)
|
|
From class
org.springframework.aop.framework.ProxyConfig
void
|
copyFrom(ProxyConfig arg0)
|
boolean
|
isExposeProxy()
|
boolean
|
isFrozen()
|
boolean
|
isOpaque()
|
boolean
|
isOptimize()
|
boolean
|
isProxyTargetClass()
|
void
|
setExposeProxy(boolean arg0)
|
void
|
setFrozen(boolean arg0)
|
void
|
setOpaque(boolean arg0)
|
void
|
setOptimize(boolean arg0)
|
void
|
setProxyTargetClass(boolean arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.beans.factory.BeanClassLoaderAware
|
From interface
org.springframework.beans.factory.BeanFactoryAware
void
|
setBeanFactory(BeanFactory arg0)
|
|
From interface
org.springframework.beans.factory.FactoryBean
Object
|
getObject()
|
Class
|
getObjectType()
|
boolean
|
isSingleton()
|
|
From interface
org.springframework.beans.factory.InitializingBean
void
|
afterPropertiesSet()
|
|
Public Constructors
public
TargetClassLoaderTransactionProxyFactoryBean
()
Public Methods
public
void
setTarget
(Object target)
Set 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.
Parameters
target
| the object that will be wrapped with a transactional argument. Must not be null . |
Protected Methods
protected
Object
getProxy
(AopProxy proxy)
Returns the proxy object to expose.
This implementation uses the class loader of the target object, to allow plugins to use transaction-wrapped
beans.
Parameters
proxy
| the prepared AopProxy instance to get the proxy from |
Returns
- the proxy object to expose