org.chwf.resources
Class ResourceManagerConfig
java.lang.Object
|
+--org.chwf.resources.ResourceManagerConfig
- public class ResourceManagerConfig
- extends java.lang.Object
A wrapper for the ResourceManager configuration.
- Author:
- Paul Strack
Field Summary |
static java.lang.String |
DEFAULT_FACTORY
The default factory key name. |
Method Summary |
java.util.Map |
getFactoryClasses(java.lang.String resourceClass)
A map with the factory names as its keys, the factory class names
(as strings) as its values. |
java.util.Map |
getFactoryProperties(java.lang.String resourceClass,
java.lang.String name)
A map of properties associated with the named factory. |
java.lang.String[] |
getResourceClasses()
The resource class names. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FACTORY
public static final java.lang.String DEFAULT_FACTORY
- The default factory key name.
ResourceManagerConfig
public ResourceManagerConfig(Config config)
- Constructor.
- Parameters:
config
- Raw configuration.
getResourceClasses
public java.lang.String[] getResourceClasses()
- The resource class names.
- Returns:
- The class names as an array of strings.
getFactoryClasses
public java.util.Map getFactoryClasses(java.lang.String resourceClass)
- A map with the factory names as its keys, the factory class names
(as strings) as its values. The default factory's name is "".
- Parameters:
resourceClass
- The class whose factories are being retrieved.- Returns:
- The map of factories.
getFactoryProperties
public java.util.Map getFactoryProperties(java.lang.String resourceClass,
java.lang.String name)
- A map of properties associated with the named factory. Properties
for the default factory can be retrieved using the DEFAULT_FACTORY
constant for the factory name.
- Parameters:
resourceClass
- The class whose factories are being retrieved.name
- The factory name.- Returns:
- The map of factory properties.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.