org.springframework.aop.framework
Class AbstractSingletonProxyFactoryBean

java.lang.Object
  

extended by org.springframework.aop.framework.ProxyConfig
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.aop.framework.ProxyConfig
exposeProxy, logger
 
Constructor Summary
AbstractSingletonProxyFactoryBean()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.FactoryBean
getObject, getObjectType
 

Constructor Detail

AbstractSingletonProxyFactoryBean

public AbstractSingletonProxyFactoryBean()
Method Detail

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.