vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.search
Class ReflectionObjectModelProvider

java.lang.Object
  extended by com.vmware.vise.search.ReflectionObjectModelProvider
All Implemented Interfaces:
ObjectModelProvider

public final class ReflectionObjectModelProvider
extends Object
implements ObjectModelProvider

Reflection-based implementation of an ObjectModelProvider.

Introspects on binding classes to determine supertype relationships based on class inheritance.

Ignores interface supertype relationships.


Constructor Summary
ReflectionObjectModelProvider(Collection<String> bindingClassPackage, ClassLoader classLoader)
          Create a new instance.
 
Method Summary
 String getImmediateSuperType(String type)
          Returns the immediate supertype of the type.
 String[] getSuperTypes(String type)
          Returns all supertypes of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionObjectModelProvider

public ReflectionObjectModelProvider(Collection<String> bindingClassPackage,
                                     ClassLoader classLoader)
Create a new instance.

Parameters:
bindingPackages - Packages containing binding classes. Only top-level classes will be registered. Sub-packages containing binding classes must be explicitly specified. Assumes that each binding class maps to the type of the binding class name (case-sensitive). If null or empty then no binding packages will be registered.
classLoader - ClassLoader for classes within the binding packages. Can be null if bindingPackages is null or empty.
Throws:
IllegalArgumentException - if any parameters are null.
Method Detail

getSuperTypes

public String[] getSuperTypes(String type)
Description copied from interface: ObjectModelProvider
Returns all supertypes of the type. Return value includes immediate supertypes and all nested supertypes within the type hierarchy supported by this provider.

If type foo extends bar, then returns bar and all supertypes of bar.

Specified by:
getSuperTypes in interface ObjectModelProvider
Parameters:
type - A type name.

getImmediateSuperType

public String getImmediateSuperType(String type)
Description copied from interface: ObjectModelProvider
Returns the immediate supertype of the type. If a type hierarchy does not support this concept then it should return a null value.

Specified by:
getImmediateSuperType in interface ObjectModelProvider
Parameters:
type - A type name.

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.