@Override public void destroy() { if ((getComponent() != null) && (getComponent().isStarted())) { try { getComponent().stop(); } catch (Exception e) { log("Error during the stopping of the Restlet Component", e); } } super.destroy(); }
result = createApplication(getComponent() .getContext()); getServletContext().setAttribute(
@Override public void init() throws ServletException { if ((getComponent() != null)) { if ((getApplication() != null) && (getApplication().isStopped())) { try { getApplication().start(); } catch (Exception e) { log("Error during the starting of the Restlet Application", e); } } } }
final Component component = getComponent();