/** * Binds to the backend controller and ask it to start. * <p> * {@inheritDoc} */ public boolean start(IBackendController peerController, Locale startingLocale) { setBackendController(peerController); Locale initialLocale = startingLocale; if (forcedStartingLocale != null) { initialLocale = new Locale(forcedStartingLocale); } return peerController.start(initialLocale); }
/** * Back controller is retrieved from the spring context and started. */ protected void startController() { try { // start on brand new instance. IBackendController backendController = (IBackendController) getApplicationContext() .getBean("applicationBackController"); BackendControllerHolder.setThreadBackendController(backendController); backendController.start(getStartupLocale(), getClientTimeZone()); } catch (RuntimeException ex) { LOG.error("applicationBackController could not be instantiated.", ex); throw ex; } }
/** * Binds to the backend controller and ask it to start. * <p> * {@inheritDoc} */ @Override public boolean start(IBackendController peerController, Locale theClientLocale, TimeZone theClientTimeZone) { this.clientLocale = theClientLocale; Locale initialLocale = theClientLocale; if (forcedStartingLocale != null) { initialLocale = LocaleUtils.toLocale(forcedStartingLocale); } started = peerController.start(initialLocale, theClientTimeZone); peerController.addDirtInterceptor(dirtInterceptor); BackendControllerHolder.setSessionBackendController(peerController); return started; }