@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); } } } }
@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); } } } }
/** * Starts the application, all the enabled associated services then the * inbound and outbound roots. */ @Override public synchronized void start() throws Exception { if (isStopped()) { if (isDebugging()) { getLogger().log( Level.INFO, "Starting " + getClass().getName() + " application in debug mode"); } else { getLogger().log(Level.INFO, "Starting " + getClass().getName() + " application"); } if (getHelper() != null) { getHelper().start(); } getServices().start(); if (getInboundRoot() != null) { getInboundRoot().start(); } if (getOutboundRoot() != null) { getOutboundRoot().start(); } // Must be invoked as a last step super.start(); } }
if (result && application.isStopped()) { application.start();
if (isStopped()) { super.start();