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 '/'.


Variable Index

 o kc
 o root

Constructor Index

 o ObjectResolverKC(KeyedCollection, BaseCollection)
Creates an instance that uses the specified KeyedCollection and root BaseCollection to lookup objects.

Method Index

 o findObject(String, String)
 o getKeyPath(Object)

Variables

 o kc
  protected KeyedCollection kc
 o root
  protected BaseCollection root

Constructors

 o 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

Methods

 o findObject
  public Object findObject(String keyPathString,
                           String interfaceName)
See Also:
findObject
 o getKeyPath
  public String getKeyPath(Object obj)

All Packages  Class Hierarchy  This Package  Previous  Next  Index