Class DiscoverNamesInAlternateManagedProperties
java.lang.Object
org.apache.commons.discovery.resource.names.ResourceNameDiscoverImpl
org.apache.commons.discovery.resource.names.DiscoverNamesInAlternateManagedProperties
- All Implemented Interfaces:
ResourceNameDiscover
public class DiscoverNamesInAlternateManagedProperties
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:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new resource discoverer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassToPropertyNameMapping
(String className, String propertyName) Add a class name/property name mapping.findResourceNames
(String resourceName) Locate names of resources that are bound toresourceName
.static void
setLog
(org.apache.commons.logging.Log _log) Deprecated.This method is not thread-safeMethods 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
-
Constructor Details
-
DiscoverNamesInAlternateManagedProperties
Construct a new resource discoverer.
-
-
Method Details
-
setLog
Deprecated.This method is not thread-safeSets theLog
for this class.- Parameters:
_log
- This classLog
-
addClassToPropertyNameMapping
Add a class name/property name mapping.- Parameters:
className
- The class namepropertyName
- The property name
-
findResourceNames
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
-