org.apache.commons.discovery.resource.names
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.
- Author:
- Richard A. Sitze
- See Also:
ManagedProperties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoverMappedNames
public DiscoverMappedNames()
- Construct a new resource discoverer
setLog
public static void setLog(org.apache.commons.logging.Log _log)
map
public void map(String fromName,
String toName)
map
public void map(String fromName,
String[] toNames)
findResourceNames
public ResourceNameIterator findResourceNames(String resourceName)
- Description copied from class:
ResourceNameDiscoverImpl
- Locate names of resources that are bound to
resourceName
.
- Specified by:
findResourceNames
in interface ResourceNameDiscover
- Specified by:
findResourceNames
in class ResourceNameDiscoverImpl
- Returns:
- Enumeration of ResourceInfo
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.