public class DiscoverMappedNames extends ResourceNameDiscoverImpl implements ResourceNameDiscover
ManagedProperties
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log |
private java.util.Map<java.lang.String,java.lang.String[]> |
mapping
The String name ==> String[] newNames mapping
|
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
private static org.apache.commons.logging.Log log
private final java.util.Map<java.lang.String,java.lang.String[]> mapping
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