类 ApplicationContextHolder
java.lang.Object
cn.taketoday.context.support.ApplicationContextHolder
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/10/12 22:39
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ApplicationContextstatic HashMap<String,ApplicationContext> getAll()Get all ApplicationContexts in this JVMstatic ApplicationContextstatic ApplicationContextgetRequired(String id) static Optional<ApplicationContext>static ApplicationContextregister(ApplicationContext context) static ApplicationContextregister(String id, ApplicationContext context) static voidremove(ApplicationContext context) static ApplicationContext
-
构造器详细资料
-
ApplicationContextHolder
public ApplicationContextHolder()
-
-
方法详细资料
-
get
-
optional
-
getRequired
-
register
- 返回:
- Returns: the previous ApplicationContext associated with id, or null if there was no application for id.
-
register
- 返回:
- Returns: the previous ApplicationContext associated with id, or null if there was no application for id.
-
remove
-
remove
-
getLastStartupContext
-
getAll
Get all ApplicationContexts in this JVM- 返回:
- all ApplicationContexts in this JVM
-