类 ServletContextLiveBeansView
- java.lang.Object
- org.springframework.context.support.LiveBeansView
- org.springframework.web.context.support.ServletContextLiveBeansView
- 所有已实现的接口:
Aware
,ApplicationContextAware
,LiveBeansViewMBean
public class ServletContextLiveBeansView extends LiveBeansView
LiveBeansView
subclass which looks for all ApplicationContexts in the web application, as exposed in ServletContext attributes.- 从以下版本开始:
- 3.2
- 作者:
- Juergen Hoeller
字段概要
从类继承的字段 org.springframework.context.support.LiveBeansView
MBEAN_APPLICATION_KEY, MBEAN_DOMAIN_PROPERTY_NAME
构造器概要
构造器 构造器 说明 ServletContextLiveBeansView(ServletContext servletContext)
Create a new LiveBeansView for the given ServletContext.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Set<ConfigurableApplicationContext>
findApplicationContexts()
Find all applicable ApplicationContexts for the current application.从类继承的方法 org.springframework.context.support.LiveBeansView
generateJson, getEscapedResourceDescription, getSnapshotAsJson, isBeanEligible, setApplicationContext
构造器详细资料
ServletContextLiveBeansView
public ServletContextLiveBeansView(ServletContext servletContext)
Create a new LiveBeansView for the given ServletContext.- 参数:
servletContext
- current ServletContext
方法详细资料
findApplicationContexts
protected Set<ConfigurableApplicationContext> findApplicationContexts()
从类复制的说明:LiveBeansView
Find all applicable ApplicationContexts for the current application.Called if no specific ApplicationContext has been set for this LiveBeansView.
- 覆盖:
findApplicationContexts
在类中LiveBeansView
- 返回:
- the set of ApplicationContexts