public class ServiceContainerConfiguration extends Object
Constructor and Description |
---|
ServiceContainerConfiguration()
Constructor
|
ServiceContainerConfiguration(int logLevel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addToContext(Hashtable<?,?> hashtable)
Add a hashtable to the context
|
void |
addToContext(String name,
Object value)
Add a new entry to the context by creating a new one.
|
org.apache.avalon.framework.configuration.Configuration |
createFinalConfiguration()
Create a final configuration.
|
org.apache.avalon.framework.context.Context |
createFinalContext()
Create the final Avalon context passed to YAAFI containing
user-supplied context
urn:avalon:home
urn:avalon:temp
urn:avalon:name
urn:avalon:partition
urn:avalon:classloader
|
org.apache.avalon.framework.logger.Logger |
getLogger() |
org.apache.avalon.framework.service.ServiceManager |
getParentServiceManager()
Get the parent service manager to find service managed by the parent
container.
|
String[] |
getServiceManagerList()
Get a list of service manager managing their own set of services.
|
boolean |
hasServiceManagerList() |
void |
loadContainerConfiguration(String location)
Loads a containerConfiguration file and set is as the Avalon configuration to
be used for Configurable.configure().
|
void |
loadContainerConfiguration(String location,
String isEncrypted)
Loads a containerConfiguration file and set is as the Avalon configuration to
be used for Configurable.configure().
|
void |
setApplicationRootDir(String applicationRootDir) |
void |
setComponentClassLoader(ClassLoader componentClassLoader) |
void |
setComponentConfigurationEncrypted(String isComponentConfigurationEncrypted) |
void |
setComponentConfigurationLocation(String componentConfigurationLocation) |
void |
setComponentRolesEncrypted(String isComponentRolesEncrypted) |
void |
setComponentRolesLocation(String componentRolesLocation) |
void |
setContainerConfiguration(org.apache.avalon.framework.configuration.Configuration containerConfiguration) |
void |
setContainerFlavour(String containerFlavour) |
void |
setContext(org.apache.avalon.framework.context.Context context) |
void |
setLogger(org.apache.avalon.framework.logger.Logger logger) |
void |
setParametersEncrypted(String isParametersEncrypted) |
void |
setParametersLocation(String parametersLocation) |
void |
setParentServiceManager(org.apache.avalon.framework.service.ServiceManager parentServiceManager)
Set the parent service manager to find service managed by the parent
container.
|
void |
setServiceManagerList(String[] serviceManagerList)
Set a list of service manager managing their own set of services.
|
void |
setTempRootDir(String tempRootDir) |
public ServiceContainerConfiguration()
public ServiceContainerConfiguration(int logLevel)
logLevel
- the log level for the console logger.public void addToContext(String name, Object value)
name
- the name of the new entryvalue
- the value of the new entrypublic void addToContext(Hashtable<?,?> hashtable)
hashtable
- the Hashtable to be addedpublic org.apache.avalon.framework.context.Context createFinalContext() throws IOException, Exception
Exception
- if filename not definedIOException
- if file not foundpublic org.apache.avalon.framework.configuration.Configuration createFinalConfiguration()
public void setComponentConfigurationLocation(String componentConfigurationLocation)
componentConfigurationLocation
- The componentConfigurationLocation to
set.public void setComponentRolesLocation(String componentRolesLocation)
componentRolesLocation
- The componentRolesLocation to set.public void setContext(org.apache.avalon.framework.context.Context context)
context
- The context to set.public void setComponentConfigurationEncrypted(String isComponentConfigurationEncrypted)
isComponentConfigurationEncrypted
- The
isComponentConfigurationEncrypted to
set.public void setComponentRolesEncrypted(String isComponentRolesEncrypted)
isComponentRolesEncrypted
- The isComponentRolesEncrypted to set.public void setParametersEncrypted(String isParametersEncrypted)
isParametersEncrypted
- The isParametersEncrypted to set.public org.apache.avalon.framework.logger.Logger getLogger()
public void setLogger(org.apache.avalon.framework.logger.Logger logger)
logger
- The logger to set.public void setParametersLocation(String parametersLocation)
parametersLocation
- The parametersLocation to set.public void setApplicationRootDir(String applicationRootDir)
applicationRootDir
- The applicationRootDir to set.public void setTempRootDir(String tempRootDir)
tempRootDir
- The tempRootDir to set.public void setComponentClassLoader(ClassLoader componentClassLoader)
componentClassLoader
- The classLoader to set.public void setContainerFlavour(String containerFlavour)
containerFlavour
- The containerFlavour to set.public void setContainerConfiguration(org.apache.avalon.framework.configuration.Configuration containerConfiguration)
containerConfiguration
- The containerConfiguration to set.public org.apache.avalon.framework.service.ServiceManager getParentServiceManager()
public void setParentServiceManager(org.apache.avalon.framework.service.ServiceManager parentServiceManager)
parentServiceManager
- the parent containerpublic String[] getServiceManagerList()
public void setServiceManagerList(String[] serviceManagerList)
serviceManagerList
- a list of service implementing the ServiceManager
interfacepublic boolean hasServiceManagerList()
public void loadContainerConfiguration(String location) throws IOException
location
- the location of the containerConfigurationIOException
- loading the configuration failedpublic void loadContainerConfiguration(String location, String isEncrypted) throws IOException
location
- the location of the containerConfigurationisEncrypted
- is the file encryptedIOException
- loading the configuration failedCopyright © 2004–1970 The Apache Software Foundation. All rights reserved.