Class DiscoverMappedNames
- java.lang.Object
-
- org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
-
- org.apache.commons.discovery.resource.names.DiscoverMappedNames
-
- All Implemented Interfaces:
ResourceNameDiscover
public class DiscoverMappedNames extends ResourceNameDiscoverImpl implements ResourceNameDiscover
Recover resource name from Managed Properties, using OLD property names. This class maintains a mapping between old names and (new) the class names they represent. The discovery mechanism uses the class names as property names.- See Also:
ManagedProperties
-
-
Constructor Summary
Constructors Constructor Description DiscoverMappedNames()
Construct a new resource discoverer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ResourceNameIterator
findResourceNames(java.lang.String resourceName)
Locate names of resources that are bound toresourceName
.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-
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
-
-
-
-
Method Detail
-
setLog
@Deprecated public static void setLog(org.apache.commons.logging.Log _log)
Deprecated.This method is not thread-safeSets theLog
for this class.- Parameters:
_log
- This classLog
-
map
public void map(java.lang.String fromName, java.lang.String toName)
Maps a name to another name.- Parameters:
fromName
- The name has to be mappedtoName
- The mapping target
-
map
public void map(java.lang.String fromName, java.lang.String[] toNames)
Maps a name to multiple names.- Parameters:
fromName
- The name has to be mappedtoNames
- The mapping targets
-
findResourceNames
public ResourceNameIterator findResourceNames(java.lang.String resourceName)
Locate names of resources that are bound toresourceName
.- Specified by:
findResourceNames
in interfaceResourceNameDiscover
- Specified by:
findResourceNames
in classResourceNameDiscoverImpl
- Parameters:
resourceName
- The resource name to locate- Returns:
- A new
ResourceNameIterator
-
-