类 ScopeMetadata
- java.lang.Object
- org.springframework.context.annotation.ScopeMetadata
public class ScopeMetadata extends Object
Describes scope characteristics for a Spring-managed bean including the scope name and the scoped-proxy behavior.The default scope is "singleton", and the default is to not create scoped-proxies.
- 从以下版本开始:
- 2.5
- 作者:
- Mark Fisher, Juergen Hoeller
- 另请参阅:
ScopeMetadataResolver
,ScopedProxyMode
构造器概要
构造器 构造器 说明 ScopeMetadata()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ScopedProxyMode
getScopedProxyMode()
Get the proxy-mode to be applied to the scoped instance.String
getScopeName()
Get the name of the scope.void
setScopedProxyMode(ScopedProxyMode scopedProxyMode)
Set the proxy-mode to be applied to the scoped instance.void
setScopeName(String scopeName)
Set the name of the scope.
构造器详细资料
ScopeMetadata
public ScopeMetadata()
方法详细资料
setScopeName
public void setScopeName(String scopeName)
Set the name of the scope.
getScopeName
public String getScopeName()
Get the name of the scope.
setScopedProxyMode
public void setScopedProxyMode(ScopedProxyMode scopedProxyMode)
Set the proxy-mode to be applied to the scoped instance.
getScopedProxyMode
public ScopedProxyMode getScopedProxyMode()
Get the proxy-mode to be applied to the scoped instance.