|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.inspector.InspectorFactory
The InspectorFactory class is a singleton class that provides a registry for registering Inspectable implemenations on a class by class basis.
| Method Summary | |
static java.beans.BeanInfo |
getBeanInfo(java.lang.Class beanClass)
Utility method to retrieve a BeanInfo for a given class. |
Inspectable |
getInspectable(Context context,
Element element)
Get the registered Inspectable implementation for the data referred to by the given Element within the given Context. |
static InspectorFactory |
getInstance()
Get the singleton InspectorFactory instance. |
MultiInspectable |
getMultiInspectable(Context context)
Get a MultiInspectable instance for the given Context. |
java.lang.Class |
getPropertyModelType(java.lang.Class cls)
Get the registered IdePropertyModel type for the SupportsInspection type provided, else the default type IdeMultiObjectModel.class. |
void |
registerInspectable(java.lang.Class targetClass,
java.lang.Class inspectableClass)
Register an Inspectable type to be used when requesting the Inspectable for a given SupportsInspection type. |
void |
registerPropertyModel(java.lang.Class targetClass,
java.lang.Class modelClass)
Register an IdePropertyModel type to be used when requesting the model type for a given SupportsInspection type. |
void |
setDefaultInspectable(java.lang.Class cls)
Set the default Inspectable implementation to use when no other match can be found for any give Class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static InspectorFactory getInstance()
public MultiInspectable getMultiInspectable(Context context)
context - the Context for which a MultiInspectable is desired.
public Inspectable getInspectable(Context context,
Element element)
context - the Context in which to interpret the Element.element - the Element holding the data to inspect.
public void registerInspectable(java.lang.Class targetClass,
java.lang.Class inspectableClass)
throws java.lang.ClassCastException
targetClass - the SupportsInspection implementation for which an
Inspectable implementation is being registered.inspectableClass - the Inspectable implementation being registered.
java.lang.ClassCastExceptiongetInspectable(oracle.ide.addin.Context, oracle.ide.model.Element)public void setDefaultInspectable(java.lang.Class cls)
cls - the Inspectable implementation to use as default.getInspectable(oracle.ide.addin.Context, oracle.ide.model.Element)public java.lang.Class getPropertyModelType(java.lang.Class cls)
public void registerPropertyModel(java.lang.Class targetClass,
java.lang.Class modelClass)
throws java.lang.ClassCastException
targetClass - the SupportsInspection implementation for which an
IdePropertyModel implementation is being registered.modelClass - the IdePropertyModel implementation being registered.
java.lang.ClassCastExceptiongetPropertyModelType(java.lang.Class)
public static final java.beans.BeanInfo getBeanInfo(java.lang.Class beanClass)
throws java.beans.IntrospectionException
beanClass - the Class for which a BeanInfo is desired.
java.beans.IntrospectionException
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.