org.springframework.aop.framework
Class AbstractSingletonProxyFactoryBean
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
All Implemented Interfaces: Serializable , FactoryBean
public abstract class AbstractSingletonProxyFactoryBean extends ProxyConfig implements FactoryBean
Convenient proxy factory bean superclass for proxy factory
beans that create only singletons. Manages pre and post
interceptors--references, rather than interceptorNames,
as in ProxyFactoryBean--and provides consistent interface management.
TODO make this the parent of TransactionProxyFactoryBean
Since:
1.3
Author:
Rod Johnson
See Also: Serialized Form
Method Summary
boolean
isSingleton ()
Is the bean managed by this factory a singleton or a prototype?
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom , getAopProxyFactory , isExposeProxy , isFrozen , isOpaque , isOptimize , isProxyTargetClass , setAopProxyFactory , setExposeProxy , setFrozen , setOpaque , setOptimize , setProxyTargetClass , toString
AbstractSingletonProxyFactoryBean
public AbstractSingletonProxyFactoryBean ()
isSingleton
public final boolean isSingleton ()
Description copied from interface: FactoryBean
Is the bean managed by this factory a singleton or a prototype?
That is, will getObject() always return the same object?
The singleton status of the FactoryBean itself will generally
be provided by the owning BeanFactory; usually, it has to be
defined as singleton there.
Specified by: isSingleton
in interface FactoryBean
Returns: if this bean is a singleton
Copyright (c) 2002-2005 The Spring Framework Project.