Class LiveBeansViewServlet
- java.lang.Object
- javax.servlet.GenericServlet
- javax.servlet.http.HttpServlet
- org.springframework.web.context.support.LiveBeansViewServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class LiveBeansViewServlet extends HttpServlet
Servlet variant ofLiveBeansView
's MBean exposure.Generates a JSON snapshot for current beans and their dependencies in all ApplicationContexts that live within the current web application.
- Since:
- 3.2
- Author:
- Juergen Hoeller
- See Also:
LiveBeansView.getSnapshotAsJson()
, Serialized Form
Constructor Summary
Constructors Constructor Description LiveBeansViewServlet()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LiveBeansView
buildLiveBeansView()
protected void
doGet(HttpServletRequest request, HttpServletResponse response)
void
init()
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
Constructor Detail
LiveBeansViewServlet
public LiveBeansViewServlet()
Method Detail
init
public void init() throws ServletException
- Overrides:
init
in classGenericServlet
- Throws:
ServletException
buildLiveBeansView
protected LiveBeansView buildLiveBeansView()
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException