/** * Convenient method to re-initialize the ConfigurationContext * * @throws ServletException */ @Override public void init() throws ServletException { if (this.servletConfig != null && !initCalled) { init(this.servletConfig); } }
/** * Convenient method to re-initialize the ConfigurationContext * * @throws ServletException */ @Override public void init() throws ServletException { if (this.servletConfig != null && !initCalled) { init(this.servletConfig); } }
@Override public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); servletContext.setAttribute(CONFIGURATION_CONTEXT, tmpconfigContext); super.init(config); }
/** * Adds the Axis configuration context to the servlet context. * * @see org.apache.axis2.transport.http.AxisServlet#init(javax.servlet.ServletConfig) */ @Override public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); servletContext.setAttribute(AxisServlet.CONFIGURATION_CONTEXT, configContext); super.init(config); }
public void init(ServletConfig servletConfig) throws ServletException { super.init(servletConfig); ServletContext servletContext = servletConfig.getServletContext(); if (servletContext != null) { servletContext.setAttribute(this.getClass().getName(), this); } }
/** * This is NOT called at init time, but when the component is started. See {@link #destroy()} and * {@link #realDestroy()}. */ @Override public void init(final ServletConfig config) throws ServletException { // this is used by super.init() to get the context and not create a new one! config.getServletContext().setAttribute(AxisServlet.CONFIGURATION_CONTEXT, this.configurationContext); // this is needed because init() is called multiple times if (!initCalled) { initCalled = true; super.init(config); // super.init() configured the listener manager (in initTransport()), now we can set it up! this.configContext.getListenerManager().setShutdownHookRequired(false); } else{ // start the ListenerManager (we stopped it in stop()) this.configContext.getListenerManager().start(); } }