类 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
  • 构造器详细资料

    • AbstractRequestContextScope

      public AbstractRequestContextScope()
  • 方法详细资料

    • doGetBean

      protected final Object doGetBean(T context, String beanName, Supplier<?> objectFactory)
    • remove

      protected Object remove(T context, String name)
    • setAttribute

      protected abstract void setAttribute(T context, String beanName, Object scopedObject)
    • getAttribute

      protected abstract Object getAttribute(T context, String beanName)
    • removeAttribute

      protected abstract void removeAttribute(T context, String name)