| java.lang.Object org.apache.turbine.services.BaseInitable org.apache.turbine.services.BaseService org.apache.turbine.services.TurbineBaseService
All known Subclasses: org.apache.turbine.services.servlet.TurbineServletService, org.apache.turbine.services.template.TurbineTemplateService, org.apache.turbine.services.assemblerbroker.TurbineAssemblerBrokerService, org.apache.turbine.services.factory.TurbineFactoryService, org.apache.turbine.services.xslt.TurbineXSLTService, org.apache.turbine.services.cache.TurbineGlobalCacheService, org.apache.turbine.services.jsonrpc.TurbineJsonRpcService, org.apache.turbine.services.intake.TurbineIntakeService, org.apache.turbine.services.schedule.TurbineSchedulerService, org.apache.turbine.services.upload.TurbineUploadService, org.apache.turbine.services.session.TurbineSessionService, org.apache.turbine.services.naming.TurbineNamingService, org.apache.turbine.services.rundata.TurbineRunDataService, org.apache.turbine.services.localization.TurbineLocalizationService, org.apache.turbine.services.avaloncomponent.ACSYaafiComponentService, org.apache.turbine.services.template.BaseTemplateEngineService, org.apache.turbine.services.mimetype.TurbineMimeTypeService, org.apache.turbine.services.pool.TurbinePoolService, org.apache.turbine.services.uniqueid.TurbineUniqueIdService, org.apache.turbine.services.security.BaseSecurityService, org.apache.turbine.services.upload.BaseUploadService, org.apache.turbine.services.ui.TurbineUIService, org.apache.turbine.services.xmlrpc.TurbineXmlRpcService, org.apache.turbine.services.pull.TurbinePullService, org.apache.turbine.services.avaloncomponent.TurbineAvalonComponentService,
TurbineBaseService | abstract public class TurbineBaseService extends BaseService (Code) | | This class provides a Service implementation that
Services used in Turbine are required to extend. The
functionality provided in addition to BaseService
functionality is recognizing objects used in early initialization
of Services in Turbine, and passing them to
appropriate convenience methods. These methods should be overriden
to provide desired initialization functionality.
Note! Remember to call
setInit(true) after successful initialization.
Note! If you need to use another
Service inside your early initialization, remember to
request initialization of that Service before using
it:
getServiceBroker().initClass("OtherService",data);
OtherService service =
(OtherService)getServiceBroker().getService("OtherService");
author: Greg Ritter author: Brett McLaughlin author: Kevin Burton author: Rafal Krzewski author: Jon S. Stevens author: Jason van Zyl version: $Id: TurbineBaseService.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public void | init(Object data) Performs early initialization. | public void | init(ServletConfig config) Performs early initialization. | public void | init(RunData data) Performs early initialization. | public void | init() Performs late initialization. | public void | shutdown() Returns to uninitialized state. |
init | public void init(Object data) throws InitializationException(Code) | | Performs early initialization. Overrides init() method in
BaseService to detect objects used in Turbine's Service
initialization and pass them to apropriate init() methods.
Parameters: data - An Object to use for initialization activities. exception: InitializationException - if initialization of thisclass was not successful. |
init | public void init() throws InitializationException(Code) | | Performs late initialization.
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 thisclass was not successful. |
shutdown | public void shutdown()(Code) | | Returns to uninitialized state.
You can use this method to release resources thet your Service
allocated when Turbine shuts down.
|
|
|