Klasse BaseServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.baseservice.BaseServiceImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.configuration.Reconfigurable,org.apache.avalon.framework.context.Contextualizable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.parameters.Parameterizable,org.apache.avalon.framework.service.Serviceable,BaseService
public abstract class BaseServiceImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements BaseService
Base class for a service implementation capturing the Avalon
serviceConfiguration artifacts. Take care that using this class
introduces a dependency to the YAAFI library.
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconfigure(org.apache.avalon.framework.configuration.Configuration configuration) voidcontextualize(org.apache.avalon.framework.context.Context context) protected FilecreateAbsoluteFile(String fileName) Determines the absolute file based on the application directoryprotected StringcreateAbsolutePath(String fileName) Determines the absolute path based on the application directoryvoiddispose()protected Fileprotected ClassLoaderprotected org.apache.avalon.framework.configuration.Configurationprotected org.apache.avalon.framework.context.Contextprotected org.apache.avalon.framework.service.ServiceManagerprotected Stringprotected org.apache.avalon.framework.parameters.Parametersprotected Stringprotected Fileprotected booleanhasService(String key) protected Objectvoidparameterize(org.apache.avalon.framework.parameters.Parameters parameters) voidreconfigure(org.apache.avalon.framework.configuration.Configuration configuration) protected voidvoidservice(org.apache.avalon.framework.service.ServiceManager serviceManager) toString()Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.avalon.framework.logger.LogEnabled
enableLogging
-
Konstruktordetails
-
BaseServiceImpl
public BaseServiceImpl()Constructor
-
-
Methodendetails
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Angegeben von:
contextualizein Schnittstelleorg.apache.avalon.framework.context.Contextualizable- Löst aus:
org.apache.avalon.framework.context.ContextException- Siehe auch:
-
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException - Angegeben von:
servicein Schnittstelleorg.apache.avalon.framework.service.Serviceable- Löst aus:
org.apache.avalon.framework.service.ServiceException- Siehe auch:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
configurein Schnittstelleorg.apache.avalon.framework.configuration.Configurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
parameterize
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException - Angegeben von:
parameterizein Schnittstelleorg.apache.avalon.framework.parameters.Parameterizable- Löst aus:
org.apache.avalon.framework.parameters.ParameterException- Siehe auch:
-
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
reconfigurein Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
disposein Schnittstelleorg.apache.avalon.framework.activity.Disposable- Siehe auch:
-
toString
-
hasService
- Parameter:
key- name of the service to test for- Gibt zurück:
- boolean indicator if the service exists
- Siehe auch:
-
lookup
- Parameter:
key- name of service to lookup from the service manager- Gibt zurück:
- reference to the service
- Siehe auch:
-
release
- Parameter:
object- service to release- Siehe auch:
-
createAbsoluteFile
Determines the absolute file based on the application directory- Parameter:
fileName- the filename- Gibt zurück:
- the absolute file
-
createAbsolutePath
Determines the absolute path based on the application directory- Parameter:
fileName- the filename- Gibt zurück:
- the absolute path
-
getServiceApplicationDir
- Gibt zurück:
- Returns the serviceApplicationDir.
-
getServiceClassLoader
- Gibt zurück:
- Returns the serviceClassLoader.
-
getServiceConfiguration
protected org.apache.avalon.framework.configuration.Configuration getServiceConfiguration()- Gibt zurück:
- Returns the serviceConfiguration.
-
getServiceContext
protected org.apache.avalon.framework.context.Context getServiceContext()- Gibt zurück:
- Returns the serviceContext.
-
getServiceManager
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()- Gibt zurück:
- Returns the serviceManager.
-
getServiceName
- Gibt zurück:
- Returns the serviceName.
-
getServiceParameters
protected org.apache.avalon.framework.parameters.Parameters getServiceParameters()- Gibt zurück:
- Returns the serviceParameters.
-
getServicePartitionName
- Gibt zurück:
- Returns the servicePartitionName.
-
getServiceTempDir
- Gibt zurück:
- Returns the serviceTempDir.
-