|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vmware.vise.search.ReflectionObjectModelProvider
public final class ReflectionObjectModelProvider
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 |
---|
public ReflectionObjectModelProvider(Collection<String> bindingClassPackage, ClassLoader classLoader)
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.
IllegalArgumentException
- if any parameters are null.Method Detail |
---|
public String[] getSuperTypes(String type)
ObjectModelProvider
If type foo extends bar, then returns bar and all supertypes of bar.
getSuperTypes
in interface ObjectModelProvider
type
- A type name.public String getImmediateSuperType(String type)
ObjectModelProvider
getImmediateSuperType
in interface ObjectModelProvider
type
- A type name.
|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |