接口的使用
org.springframework.beans.factory.config.Scope
使用Scope的程序包 程序包 说明 org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.messaging.simp Generic support for Simple Messaging Protocols including protocols such as STOMP.org.springframework.transaction.support Support classes for the org.springframework.transaction package.org.springframework.web.context.request Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory.config中Scope的使用
返回Scope的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 Scope
ConfigurableBeanFactory. getRegisteredScope(String scopeName)
Return the Scope implementation for the given scope name, if any.Scope
BeanExpressionContext. getScope()
参数类型为Scope的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 void
CustomScopeConfigurer. addScope(String scopeName, Scope scope)
Add the given scope to this configurer's map of scopes.void
ConfigurableBeanFactory. registerScope(String scopeName, Scope scope)
Register the given scope, backed by the given Scope implementation.参数类型为Scope的org.springframework.beans.factory.config中的构造器 构造器 说明 BeanExpressionContext(ConfigurableBeanFactory beanFactory, Scope scope)
org.springframework.beans.factory.support中Scope的使用
返回Scope的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 Scope
AbstractBeanFactory. getRegisteredScope(String scopeName)
参数类型为Scope的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactory. registerScope(String scopeName, Scope scope)
org.springframework.context.support中Scope的使用
实现Scope的org.springframework.context.support中的类 修饰符和类型 类 说明 class
SimpleThreadScope
A simple thread-backedScope
implementation.org.springframework.messaging.simp中Scope的使用
实现Scope的org.springframework.messaging.simp中的类 修饰符和类型 类 说明 class
SimpSessionScope
AScope
implementation exposing the attributes of a SiMP session (e.g.org.springframework.transaction.support中Scope的使用
实现Scope的org.springframework.transaction.support中的类 修饰符和类型 类 说明 class
SimpleTransactionScope
A simple transaction-backedScope
implementation, delegating toTransactionSynchronizationManager
's resource binding mechanism.org.springframework.web.context.request中Scope的使用
实现Scope的org.springframework.web.context.request中的类 修饰符和类型 类 说明 class
AbstractRequestAttributesScope
AbstractScope
implementation that reads from a particular scope in the current thread-boundRequestAttributes
object.class
RequestScope
Request-backedScope
implementation.class
SessionScope
Session-backedScope
implementation.org.springframework.web.context.support中Scope的使用
实现Scope的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextScope
Scope
wrapper for a ServletContext, i.e. for global web application attributes.