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, setupLoggerpublic 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.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.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.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.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.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.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.Parameterizableorg.apache.avalon.framework.parameters.ParameterExceptionParameterizable.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.Reconfigurableorg.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)public void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableDisposable.dispose()public String toString()
toString in class ObjectObject.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.