org.biojava.directory
Class RegistryConfiguration.Composite
java.lang.Object
|
+--org.biojava.directory.RegistryConfiguration.Composite
- All Implemented Interfaces:
- RegistryConfiguration
- Enclosing class:
- RegistryConfiguration
- public static class RegistryConfiguration.Composite
- extends java.lang.Object
- implements RegistryConfiguration
A RegistryConfiguration that allows you to treat other
configurations as providing important or default configuration
information.
- Author:
- Matthew Pocock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryConfiguration.Composite
public RegistryConfiguration.Composite()
getConfiguration
public java.util.Map getConfiguration()
- Description copied from interface:
RegistryConfiguration
getConfiguration returns a mapping of registry
database names to collections of tag-value pairs.
- Specified by:
getConfiguration in interface RegistryConfiguration
- Returns:
- a
Map.
getConfigLocator
public java.lang.String getConfigLocator()
- Description copied from interface:
RegistryConfiguration
getConfigLocator returns a locator for the
configuration.
- Specified by:
getConfigLocator in interface RegistryConfiguration
- Returns:
- a
String.
addTopConfig
public void addTopConfig(RegistryConfiguration newConfig)
throws RegistryException
- Add a configuration as the most authoritative place to look.
During future lookups with this context, values in newConfig
will take precedence over values in the previously existing
configuration.
- Parameters:
newConfig - the RegistryConfiguration to add as most
important
RegistryException
addBottomConfig
public void addBottomConfig(RegistryConfiguration newConfig)
throws RegistryException
- Add a configuration as the most default place to look. During
future lookups with this context, values in newConfig will be
used as default values only if the lookup would return nothing
in the previously existing configuration.
- Parameters:
newConfig - the RegistryConfiguration to add as the
default
RegistryException