Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » scope » [javadoc | source]
org.springframework.aop.scope
public class: ScopedProxyFactoryBean [javadoc | source]
java.lang.Object
   org.springframework.aop.framework.ProxyConfig
      org.springframework.aop.scope.ScopedProxyFactoryBean

All Implemented Interfaces:
    BeanFactoryAware, FactoryBean, Serializable

Convenient proxy factory bean for scoped objects.

Proxies created using this factory bean are thread-safe singletons and may be injected into shared objects, with transparent scoping behavior.

Proxies returned by this class implement the ScopedObject interface. This presently allows for removing the corresponding object from the scope, seamlessly creating a new instance in the scope on next access.

Please note that the proxies created by this factory are class-based proxies by default. This can be customized through switching the "proxyTargetClass" property to "false".

Fields inherited from org.springframework.aop.framework.ProxyConfig:
opaque,  exposeProxy
Constructor:
 public ScopedProxyFactoryBean() 
Method from org.springframework.aop.scope.ScopedProxyFactoryBean Summary:
getObject,   getObjectType,   isSingleton,   setBeanFactory,   setTargetBeanName
Methods from org.springframework.aop.framework.ProxyConfig:
copyFrom,   isExposeProxy,   isFrozen,   isOpaque,   isOptimize,   isProxyTargetClass,   setExposeProxy,   setFrozen,   setOpaque,   setOptimize,   setProxyTargetClass,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.scope.ScopedProxyFactoryBean Detail:
 public Object getObject() 
 public Class getObjectType() 
 public boolean isSingleton() 
 public  void setBeanFactory(BeanFactory beanFactory) 
 public  void setTargetBeanName(String targetBeanName) 
    Set the name of the bean that is to be scoped.