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 TypMethodeBeschreibungvoid
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) protected File
createAbsoluteFile
(String fileName) Determines the absolute file based on the application directoryprotected String
createAbsolutePath
(String fileName) Determines the absolute path based on the application directoryvoid
dispose()
protected File
protected ClassLoader
protected org.apache.avalon.framework.configuration.Configuration
protected org.apache.avalon.framework.context.Context
protected org.apache.avalon.framework.service.ServiceManager
protected String
protected org.apache.avalon.framework.parameters.Parameters
protected String
protected File
protected boolean
hasService
(String key) protected Object
void
parameterize
(org.apache.avalon.framework.parameters.Parameters parameters) void
reconfigure
(org.apache.avalon.framework.configuration.Configuration configuration) protected void
void
service
(org.apache.avalon.framework.service.ServiceManager serviceManager) toString()
Von Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von 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:
contextualize
in 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:
service
in 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:
configure
in 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:
parameterize
in 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:
reconfigure
in Schnittstelleorg.apache.avalon.framework.configuration.Reconfigurable
- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
- Siehe auch:
-
dispose
public void dispose()- Angegeben von:
dispose
in 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.
-