Class COM.ibm.jaws.motk.ObjectResolverKC
All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.jaws.motk.ObjectResolverKC
java.lang.Object
|
+----COM.ibm.jaws.motk.ObjectResolverKC
- public class ObjectResolverKC
- extends Object
- implements ObjectResolver
This class implements the ObjectResolver interface based on a single
KeyedCollection, and a root BaseCollection. Relative key paths are
resolved via the KeyedCollection and absolute key paths are resolved
via the root BaseCollection. If you don't expect to support
relative key paths then just pass null in for the KeyedCollection
and the root will be used for relative key paths.
When going from object to keyPath only the root BC is
used. Therefore absolute key paths are always produced.
Root key paths are key paths whos first character is '/'.
-
kc
-
-
root
-
-
ObjectResolverKC(KeyedCollection, BaseCollection)
- Creates an instance that uses the specified KeyedCollection and
root BaseCollection to lookup objects.
-
findObject(String, String)
-
-
getKeyPath(Object)
-
kc
protected KeyedCollection kc
root
protected BaseCollection root
ObjectResolverKC
public ObjectResolverKC(KeyedCollection kc,
BaseCollection root)
- Creates an instance that uses the specified KeyedCollection and
root BaseCollection to lookup objects. This ObjectResolver only
works with Managed objects from the Managed Object Framework
(COM.ibm.jaws.mofw).
- Parameters:
- kc - a instance of KeyedCollection.
- root - The BC to use to resovle root key paths and for
getKeyPath
findObject
public Object findObject(String keyPathString,
String interfaceName)
- See Also:
- findObject
getKeyPath
public String getKeyPath(Object obj)
All Packages Class Hierarchy This Package Previous Next Index