public final class InspectableViewRegistry
extends java.lang.Object
Views that can be inspected by the Property
Inspector.| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<MetaClass> |
detractors() |
static InspectableViewRegistry |
instance()
Returns the singleton instance of this class.
|
void |
registerDetractor(java.lang.Class<? extends View> viewType)
Registers the given type as a view that should not be inspected by the
Property Inspector.
|
void |
registerDetractor(MetaClass metaClazz)
Registers the given metclass to disable inspection by the Property Inspector.
|
void |
registerDetractor(java.lang.String classFQN)
Deprecated.
use MetaClass version instead.
|
void |
registerDetractor(View view)
Registers the given view to disable inspection by the Property Inspector.
|
void |
registerSupporter(java.lang.Class<? extends View> viewType)
Registers the given type as a view that can be inspected by the Property
Inspector.
|
void |
registerSupporter(MetaClass metaClazz)
Registers the given metclass to enable inspection by the Property Inspector.
|
void |
registerSupporter(java.lang.String classFQN)
Deprecated.
use MetaClass version instead.
|
java.lang.Iterable<MetaClass> |
supporters() |
public void registerSupporter(MetaClass metaClazz)
metaClazz - the metclass of a view that supports inspection.public void registerSupporter(java.lang.Class<? extends View> viewType)
viewType - the type of the view to register.java.lang.IllegalArgumentException - if the given view type is
null.public void registerSupporter(java.lang.String classFQN)
classFQN - the fully-qualified class name of the view to register.java.lang.IllegalArgumentException - if the fully-qualified class name is
either null or an empty String.public java.lang.Iterable<MetaClass> supporters()
public void registerDetractor(MetaClass metaClazz)
metaClazz - the metclass of a view that does not support inspection.public void registerDetractor(View view)
view - the view to register.java.lang.IllegalArgumentException - if the given view is null.public void registerDetractor(java.lang.Class<? extends View> viewType)
viewType - the type of the view to register.java.lang.IllegalArgumentException - if the given view type is
null.public void registerDetractor(java.lang.String classFQN)
classFQN - the fully-qualified class name of the view to register.java.lang.IllegalArgumentException - if the fully-qualified class name is
either null or an empty String.public java.lang.Iterable<MetaClass> detractors()
public static InspectableViewRegistry instance()