org.apache.commons.discovery.resource.names
Class DiscoverNamesInDictionary
java.lang.Object
|
+--org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
|
+--org.apache.commons.discovery.resource.names.DiscoverNamesInDictionary
- All Implemented Interfaces:
- ResourceNameDiscover
- public class DiscoverNamesInDictionary
- extends ResourceNameDiscoverImpl
- implements ResourceNameDiscover
Recover resources from a Dictionary. This covers Properties as well,
since Properties extends Hashtable extends Dictionary
.
The recovered value is expected to be either a String
or a String[]
.
- Author:
- Richard A. Sitze
Method Summary |
void |
addResource(java.lang.String resourceName,
java.lang.String resource)
|
void |
addResource(java.lang.String resourceName,
java.lang.String[] resources)
|
ResourceNameIterator |
findResourceNames(java.lang.String resourceName)
Locate names of resources that are bound to resourceName . |
protected java.util.Dictionary |
getDictionary()
|
void |
setDictionary(java.util.Dictionary table)
Specify set of class loaders to be used in searching. |
static void |
setLog(org.apache.commons.logging.Log _log)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverNamesInDictionary
public DiscoverNamesInDictionary()
- Construct a new resource discoverer
DiscoverNamesInDictionary
public DiscoverNamesInDictionary(java.util.Dictionary dictionary)
- Construct a new resource discoverer
setLog
public static void setLog(org.apache.commons.logging.Log _log)
getDictionary
protected java.util.Dictionary getDictionary()
setDictionary
public void setDictionary(java.util.Dictionary table)
- Specify set of class loaders to be used in searching.
addResource
public void addResource(java.lang.String resourceName,
java.lang.String resource)
addResource
public void addResource(java.lang.String resourceName,
java.lang.String[] resources)
findResourceNames
public ResourceNameIterator findResourceNames(java.lang.String resourceName)
- Description copied from interface:
ResourceNameDiscover
- Locate names of resources that are bound to
resourceName
.
- Specified by:
findResourceNames
in interface ResourceNameDiscover
- Overrides:
findResourceNames
in class ResourceNameDiscoverImpl
- Returns:
- Enumeration of ResourceInfo
Copyright (c) 2002 - Apache Software Foundation