类 AbstractRequestContextScope<T>
java.lang.Object
cn.taketoday.web.context.support.AbstractRequestContextScope<T>
- 所有已实现的接口:
cn.taketoday.beans.factory.config.Scope
- 直接已知子类:
RequestScope,SessionScope
public abstract class AbstractRequestContextScope<T>
extends Object
implements cn.taketoday.beans.factory.config.Scope
Abstract
Scope implementation that reads from a particular scope
in the current thread-bound AttributeAccessor object.
Subclasses may wish to override the doGetBean(T, java.lang.String, java.util.function.Supplier<?>) and remove(T, java.lang.String)
methods to add synchronization around the call back into this super class.
- 从以下版本开始:
- 4.0 2022/1/19 21:31
- 作者:
- Rod Johnson, Juergen Hoeller, Rob Harrop, Harry Yang
-
字段概要
从接口继承的字段 cn.taketoday.beans.factory.config.Scope
PROTOTYPE, SINGLETON -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final Objectprotected abstract ObjectgetAttribute(T context, String beanName) protected Objectprotected abstract voidremoveAttribute(T context, String name) protected abstract voidsetAttribute(T context, String beanName, Object scopedObject) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.beans.factory.config.Scope
get, getConversationId, registerDestructionCallback, remove, resolveContextualObject
-
构造器详细资料
-
AbstractRequestContextScope
public AbstractRequestContextScope()
-
-
方法详细资料
-
doGetBean
-
remove
-
setAttribute
-
getAttribute
-
removeAttribute
-