public class ServletContextLiveBeansView extends LiveBeansView
LiveBeansView
subclass which looks for all ApplicationContexts
in the web application, as exposed in ServletContext attributes.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 Set<ConfigurableApplicationContext> |
findApplicationContexts()
Find all applicable ApplicationContexts for the current application.
|
generateJson, getSnapshotAsJson, setApplicationContext
public ServletContextLiveBeansView(ServletContext servletContext)
servletContext
- current ServletContextprotected Set<ConfigurableApplicationContext> findApplicationContexts()
LiveBeansView
Called if no specific ApplicationContext has been set for this LiveBeansView.
findApplicationContexts
in class LiveBeansView