| java.lang.Object org.springframework.aop.framework.ProxyConfig org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
All known Subclasses: org.springframework.transaction.interceptor.TransactionProxyFactoryBean,
AbstractSingletonProxyFactoryBean | abstract public class AbstractSingletonProxyFactoryBean extends ProxyConfig implements FactoryBean,BeanClassLoaderAware,InitializingBean(Code) | | Convenient proxy factory bean superclass for proxy factory
beans that create only singletons.
Manages pre- and post-interceptors (references, rather than
interceptor names, as in
ProxyFactoryBean ) and provides
consistent interface management.
author: Juergen Hoeller since: 2.0 |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
createMainInterceptor | abstract protected Object createMainInterceptor()(Code) | | Create the "main" interceptor for this proxy factory bean.
Typically an Advisor, but can also be any type of Advice.
Pre-interceptors will be applied before, post-interceptors
will be applied after this interceptor.
|
createTargetSource | protected TargetSource createTargetSource(Object target)(Code) | | Determine a TargetSource for the given target (or TargetSource).
Parameters: target - target. If this is an implementation of TargetSource it isused as our TargetSource; otherwise it is wrapped in a SingletonTargetSource. a TargetSource for this object |
getProxy | protected Object getProxy(AopProxy aopProxy)(Code) | | Return the proxy object to expose.
The default implementation uses a getProxy call with
the factory's bean class loader. Can be overridden to specify a
custom class loader.
Parameters: aopProxy - the prepared AopProxy instance to get the proxy from the proxy object to expose See Also: AopProxy.getProxy(ClassLoader) |
isSingleton | final public boolean isSingleton()(Code) | | |
setPostInterceptors | public void setPostInterceptors(Object[] postInterceptors)(Code) | | Set additional interceptors (or advisors) to be applied after the
implicit transaction interceptor, e.g. HibernateInterceptors for
eagerly binding Sessions to the current thread when using JTA.
Note that this is just necessary if you rely on those interceptors in general:
HibernateTemplate and JdoTemplate work nicely with JtaTransactionManager through
implicit on-demand thread binding.
See Also: org.springframework.orm.hibernate.HibernateInterceptor See Also: org.springframework.orm.jdo.JdoInterceptor |
setProxyInterfaces | public void setProxyInterfaces(Class[] proxyInterfaces)(Code) | | Specify the set of interfaces being proxied.
If not specified (the default), the AOP infrastructure works
out which interfaces need proxying by analyzing the target,
proxying all the interfaces that the target object implements.
|
|
|