Class DiscoverMappedNames
java.lang.Object
org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
org.apache.commons.discovery.resource.names.DiscoverMappedNames
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindResourceNames(String resourceName) Locate names of resources that are bound toresourceName.voidMaps a name to another name.voidMaps a name to multiple names.static voidsetLog(org.apache.commons.logging.Log _log) Deprecated.This method is not thread-safeMethods inherited from class ResourceNameDiscoverImpl
findResourceNamesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResourceNameDiscover
findResourceNames
-
Constructor Details
-
DiscoverMappedNames
public DiscoverMappedNames()Construct a new resource discoverer
-
-
Method Details
-
setLog
Deprecated.This method is not thread-safeSets theLogfor this class.- Parameters:
_log- This classLog
-
map
-
map
-
findResourceNames
Locate names of resources that are bound toresourceName.- Specified by:
findResourceNamesin interfaceResourceNameDiscover- Specified by:
findResourceNamesin classResourceNameDiscoverImpl- Parameters:
resourceName- The resource name to locate- Returns:
- A new
ResourceNameIterator
-