org.apache.fulcrum.yaafi.service.baseservice
Class BaseServiceImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.baseservice.BaseServiceImpl
- All Implemented Interfaces:
- 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.
- Author:
- Siegfried Goeschl
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
BaseServiceImpl
public BaseServiceImpl()
- Constructor
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
- Specified by:
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
- Throws:
org.apache.avalon.framework.context.ContextException
- See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
parameterize
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.avalon.framework.parameters.ParameterException
- Specified by:
parameterize
in interface org.apache.avalon.framework.parameters.Parameterizable
- Throws:
org.apache.avalon.framework.parameters.ParameterException
- See Also:
Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
reconfigure
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
reconfigure
in interface org.apache.avalon.framework.configuration.Reconfigurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
- See Also:
Disposable.dispose()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
hasService
protected boolean hasService(java.lang.String key)
- See Also:
ServiceManager.hasService(java.lang.String)
lookup
protected java.lang.Object lookup(java.lang.String key)
- See Also:
ServiceManager.lookup(java.lang.String)
release
protected void release(java.lang.Object object)
- See Also:
ServiceManager.release(java.lang.Object)
createAbsoluteFile
protected java.io.File createAbsoluteFile(java.lang.String fileName)
- Determines the absolute file based on the application directory
- Parameters:
fileName
- the filename
- Returns:
- the absolute file
createAbsolutePath
protected java.lang.String createAbsolutePath(java.lang.String fileName)
- Determines the absolute path based on the application directory
- Parameters:
fileName
- the filename
- Returns:
- the absolute path
getServiceApplicationDir
protected java.io.File getServiceApplicationDir()
- Returns:
- Returns the serviceApplicationDir.
getServiceClassLoader
protected java.lang.ClassLoader getServiceClassLoader()
- Returns:
- Returns the serviceClassLoader.
getServiceConfiguration
protected org.apache.avalon.framework.configuration.Configuration getServiceConfiguration()
- Returns:
- Returns the serviceConfiguration.
getServiceContext
protected org.apache.avalon.framework.context.Context getServiceContext()
- Returns:
- Returns the serviceContext.
getServiceManager
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
- Returns:
- Returns the serviceManager.
getServiceName
protected java.lang.String getServiceName()
- Returns:
- Returns the serviceName.
getServiceParameters
protected org.apache.avalon.framework.parameters.Parameters getServiceParameters()
- Returns:
- Returns the serviceParameters.
getServicePartitionName
protected java.lang.String getServicePartitionName()
- Returns:
- Returns the servicePartitionName.
getServiceTempDir
protected java.io.File getServiceTempDir()
- Returns:
- Returns the serviceTempDir.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.