/** * This is the early initialization method called by the Turbine <code>Service</code> framework * * @param conf The <code>ServletConfig</code> * @exception throws a <code>InitializationException</code> if the service fails to initialize */ public synchronized void init(ServletConfig conf) throws InitializationException { if (getInit()) return; super.init(conf); setInit(true); }
/** * Performs late initialization. Called just before the first use of the service. * * <p>If your class relies on early initialization, and the object it expects was not received, * you can use late initialization to throw an exception and complain. * * @exception InitializationException, if initialization of this class was not successful. */ public synchronized void init() throws InitializationException { super.init(); m_runDataService = (JetspeedRunDataService) TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME); } // init
/** * This is the early initialization method called by the Turbine <code>Service</code> framework * * @param conf The <code>ServletConfig</code> * @exception throws a <code>InitializationException</code> if the service fails to initialize */ @Override public synchronized void init(ServletConfig conf) throws InitializationException { if (getInit()) { return; } super.init(conf); this.runDataService = (JetspeedRunDataService) TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME); setInit(true); }