public abstract class BaseServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements BaseService
Constructor and Description |
---|
BaseServiceImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
contextualize(org.apache.avalon.framework.context.Context context) |
protected java.io.File |
createAbsoluteFile(java.lang.String fileName)
Determines the absolute file based on the application directory
|
protected java.lang.String |
createAbsolutePath(java.lang.String fileName)
Determines the absolute path based on the application directory
|
void |
dispose() |
protected java.io.File |
getServiceApplicationDir() |
protected java.lang.ClassLoader |
getServiceClassLoader() |
protected org.apache.avalon.framework.configuration.Configuration |
getServiceConfiguration() |
protected org.apache.avalon.framework.context.Context |
getServiceContext() |
protected org.apache.avalon.framework.service.ServiceManager |
getServiceManager() |
protected java.lang.String |
getServiceName() |
protected org.apache.avalon.framework.parameters.Parameters |
getServiceParameters() |
protected java.lang.String |
getServicePartitionName() |
protected java.io.File |
getServiceTempDir() |
protected boolean |
hasService(java.lang.String key) |
protected java.lang.Object |
lookup(java.lang.String key) |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters) |
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) |
protected void |
release(java.lang.Object object) |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager) |
java.lang.String |
toString() |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters) throws org.apache.avalon.framework.parameters.ParameterException
parameterize
in interface org.apache.avalon.framework.parameters.Parameterizable
org.apache.avalon.framework.parameters.ParameterException
Parameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure
in interface org.apache.avalon.framework.configuration.Reconfigurable
org.apache.avalon.framework.configuration.ConfigurationException
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
Disposable.dispose()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected boolean hasService(java.lang.String key)
ServiceManager.hasService(java.lang.String)
protected java.lang.Object lookup(java.lang.String key)
ServiceManager.lookup(java.lang.String)
protected void release(java.lang.Object object)
ServiceManager.release(java.lang.Object)
protected java.io.File createAbsoluteFile(java.lang.String fileName)
fileName
- the filenameprotected java.lang.String createAbsolutePath(java.lang.String fileName)
fileName
- the filenameprotected java.io.File getServiceApplicationDir()
protected java.lang.ClassLoader getServiceClassLoader()
protected org.apache.avalon.framework.configuration.Configuration getServiceConfiguration()
protected org.apache.avalon.framework.context.Context getServiceContext()
protected org.apache.avalon.framework.service.ServiceManager getServiceManager()
protected java.lang.String getServiceName()
protected org.apache.avalon.framework.parameters.Parameters getServiceParameters()
protected java.lang.String getServicePartitionName()
protected java.io.File getServiceTempDir()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.