|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl | +--org.apache.commons.discovery.resource.names.DiscoverNamesInDictionary
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[]
.
Constructor Summary | |
DiscoverNamesInDictionary()
Construct a new resource discoverer |
|
DiscoverNamesInDictionary(java.util.Dictionary dictionary)
Construct a new resource discoverer |
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 org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl |
findResourceNames |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.discovery.ResourceNameDiscover |
findResourceNames |
Constructor Detail |
public DiscoverNamesInDictionary()
public DiscoverNamesInDictionary(java.util.Dictionary dictionary)
Method Detail |
public static void setLog(org.apache.commons.logging.Log _log)
protected java.util.Dictionary getDictionary()
public void setDictionary(java.util.Dictionary table)
public void addResource(java.lang.String resourceName, java.lang.String resource)
public void addResource(java.lang.String resourceName, java.lang.String[] resources)
public ResourceNameIterator findResourceNames(java.lang.String resourceName)
ResourceNameDiscover
resourceName
.
findResourceNames
in interface ResourceNameDiscover
findResourceNames
in class ResourceNameDiscoverImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |