public class ServletContextLiveBeansView extends LiveBeansView
LiveBeansView
subclass which looks for all ApplicationContexts
in the web application, as exposed in ServletContext attributes.Modifier and Type | Field and Description |
---|---|
private ServletContext |
servletContext |
MBEAN_APPLICATION_KEY, MBEAN_DOMAIN_PROPERTY_NAME
Constructor and Description |
---|
ServletContextLiveBeansView(ServletContext servletContext)
Create a new LiveBeansView for the given ServletContext.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<ConfigurableApplicationContext> |
findApplicationContexts()
Find all applicable ApplicationContexts for the current application.
|
generateJson, getSnapshotAsJson, setApplicationContext
public ServletContextLiveBeansView(ServletContext servletContext)
servletContext
- current ServletContextprotected java.util.Set<ConfigurableApplicationContext> findApplicationContexts()
LiveBeansView
Called if no specific ApplicationContext has been set for this LiveBeansView.
findApplicationContexts
in class LiveBeansView