java.lang.Object
nectar.Service
nectar.configuration.ConfigurationService
- public class ConfigurationService
- extends nectar.Service
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map
private java.util.HashMap map
classLoader
private java.lang.ClassLoader classLoader
config
private ConfigFile config
log
private static org.apache.commons.logging.Log log
ConfigurationService
public ConfigurationService()
- Creates a new instance of ConfigurationService
initConfigFile
private void initConfigFile()
throws ConfigurationException
loadServiceConfigurations
private Configuration[] loadServiceConfigurations()
throws ConfigurationException
loadServices
private void loadServices(Configuration[] configs)
throws ConfigurationException
initService
public void initService()
throws ConfigurationException,
nectar.ServiceException
- Description copied from class:
nectar.Service
- Initialize this Service. This method must be overridden by Service implementations and should contain dependancy declarations, and other initializing procedures. Upon return of the function, the Service should be ready to do it's job.
killService
public void killService()
- Description copied from class:
nectar.Service
- Shutdown this Service. This method must be overridden by Service implementations and should contain a call to killDependants(), and other shutdown procedures.
getConfiguration
public Configuration getConfiguration(java.lang.String serviceName)
throws ConfigurationException
isConfigurationActive
public boolean isConfigurationActive(java.lang.String serviceName)
addConfiguration
public void addConfiguration(Configuration config)
removeConfiguration
public void removeConfiguration(Configuration config)
getConfigFile
public ConfigFile getConfigFile()
getExtensionsClassLoader
public java.lang.ClassLoader getExtensionsClassLoader()