类 ScopedProxyFactoryBean

java.lang.Object
cn.taketoday.aop.framework.ProxyConfig
cn.taketoday.aop.scope.ScopedProxyFactoryBean
所有已实现的接口:
AopInfrastructureBean, Aware, BeanFactoryAware, FactoryBean<Object>, Serializable

public class ScopedProxyFactoryBean extends ProxyConfig implements FactoryBean<Object>, BeanFactoryAware, AopInfrastructureBean
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".

从以下版本开始:
4.0
作者:
Rod Johnson, Juergen Hoeller
另请参阅: