public class MockConfiguration extends Object implements Configuration
Modifier and Type | Field and Description |
---|---|
protected List<UnknownHandlerConfig> |
unknownHandlerStack |
Constructor and Description |
---|
MockConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addPackageConfig(String name,
PackageConfig packageContext) |
void |
buildRuntimeConfiguration() |
void |
destroy()
Allow the Configuration to clean up any resources that have been used.
|
Container |
getContainer() |
Set<String> |
getLoadedFileNames() |
PackageConfig |
getPackageConfig(String name) |
Set<String> |
getPackageConfigNames() |
Map<String,PackageConfig> |
getPackageConfigs() |
RuntimeConfiguration |
getRuntimeConfiguration()
The current runtime configuration.
|
List<UnknownHandlerConfig> |
getUnknownHandlerStack() |
void |
rebuildRuntimeConfiguration() |
List<PackageProvider> |
reloadContainer(List<ContainerProvider> containerProviders) |
PackageConfig |
removePackageConfig(String name)
Removes a package from the the list of packages.
|
void |
selfRegister() |
void |
setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack) |
protected List<UnknownHandlerConfig> unknownHandlerStack
public void selfRegister()
public PackageConfig getPackageConfig(String name)
getPackageConfig
in interface Configuration
public Set<String> getPackageConfigNames()
getPackageConfigNames
in interface Configuration
public Map<String,PackageConfig> getPackageConfigs()
getPackageConfigs
in interface Configuration
public RuntimeConfiguration getRuntimeConfiguration()
Configuration
getRuntimeConfiguration
in interface Configuration
public void addPackageConfig(String name, PackageConfig packageContext)
addPackageConfig
in interface Configuration
public void buildRuntimeConfiguration()
public void destroy()
Configuration
destroy
in interface Configuration
public void rebuildRuntimeConfiguration()
rebuildRuntimeConfiguration
in interface Configuration
public PackageConfig removePackageConfig(String name)
Configuration
removePackageConfig
in interface Configuration
name
- the name of the package to removepublic Container getContainer()
getContainer
in interface Configuration
public Set<String> getLoadedFileNames()
getLoadedFileNames
in interface Configuration
public List<PackageProvider> reloadContainer(List<ContainerProvider> containerProviders) throws ConfigurationException
reloadContainer
in interface Configuration
containerProviders
- list of container providersConfigurationException
- in case of any configuration errorspublic List<UnknownHandlerConfig> getUnknownHandlerStack()
getUnknownHandlerStack
in interface Configuration
public void setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack)
setUnknownHandlerStack
in interface Configuration
unknownHandlerStack
- list of unknown handlersCopyright © 2000–2020 Apache Software Foundation. All rights reserved.