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 File |
createAbsoluteFile(String fileName)
Determines the absolute file based on the application directory
|
protected String |
createAbsolutePath(String fileName)
Determines the absolute path based on the application directory
|
void |
dispose() |
protected File |
getServiceApplicationDir() |
protected 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 String |
getServiceName() |
protected org.apache.avalon.framework.parameters.Parameters |
getServiceParameters() |
protected String |
getServicePartitionName() |
protected File |
getServiceTempDir() |
protected boolean |
hasService(String key) |
protected Object |
lookup(String key) |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters) |
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) |
protected void |
release(Object object) |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager) |
String |
toString() |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public BaseServiceImpl()
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 String toString()
toString
in class Object
Object.toString()
protected boolean hasService(String key)
key
- name of the service to test forServiceManager.hasService(java.lang.String)
protected Object lookup(String key)
key
- name of service to lookup from the service managerServiceManager.lookup(java.lang.String)
protected void release(Object object)
object
- service to releaseServiceManager.release(java.lang.Object)
protected File createAbsoluteFile(String fileName)
fileName
- the filenameprotected String createAbsolutePath(String fileName)
fileName
- the filenameprotected File getServiceApplicationDir()
protected 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 String getServiceName()
protected org.apache.avalon.framework.parameters.Parameters getServiceParameters()
protected String getServicePartitionName()
protected File getServiceTempDir()
Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.