org.apache.commons.discovery.resource.names
public class DiscoverMappedNames extends ResourceNameDiscoverImpl implements ResourceNameDiscover
ManagedProperties
Constructor and Description |
---|
DiscoverMappedNames()
Construct a new resource discoverer
|
Modifier and Type | Method and Description |
---|---|
ResourceNameIterator |
findResourceNames(java.lang.String resourceName)
Locate names of resources that are bound to
resourceName . |
void |
map(java.lang.String fromName,
java.lang.String toName)
Maps a name to another name.
|
void |
map(java.lang.String fromName,
java.lang.String[] toNames)
Maps a name to multiple names.
|
static void |
setLog(org.apache.commons.logging.Log _log)
Deprecated.
This method is not thread-safe
|
findResourceNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findResourceNames
public DiscoverMappedNames()
@Deprecated public static void setLog(org.apache.commons.logging.Log _log)
Log
for this class._log
- This class Log
public void map(java.lang.String fromName, java.lang.String toName)
fromName
- The name has to be mappedtoName
- The mapping targetpublic void map(java.lang.String fromName, java.lang.String[] toNames)
fromName
- The name has to be mappedtoNames
- The mapping targetspublic ResourceNameIterator findResourceNames(java.lang.String resourceName)
resourceName
.findResourceNames
in interface ResourceNameDiscover
findResourceNames
in class ResourceNameDiscoverImpl
resourceName
- The resource name to locateResourceNameIterator
Copyright © 2002-2014. All Rights Reserved.