InspectableRegistry

com.froglogic.squish.extension.InspectableRegistry

Class InspectableRegistry — This class allows registration of factories of extensions that implement Inspectable.

Synopsis

public abstract class com.froglogic.squish.extension.InspectableRegistry {

// Public Constructors
  public InspectableRegistry();

// Public Static Methods
  public static final com.froglogic.squish.extension.InspectableRegistry getRegistry();
  public static final void setRegistry(com.froglogic.squish.extension.InspectableRegistry r);

// Public Methods
  public abstract com.froglogic.squish.extension.Inspectable getInspectable(java.lang.Object obj);
  public abstract void register(com.froglogic.squish.extension.InspectableFactory factory);
}

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Description

This class allows registration of factories of extensions that implement Inspectable. It is meant to be implemented inside Squish, and used as part of the extension API in init.

See Also: com.froglogic.squish.extension.InspectableFactory, com.froglogic.squish.extension.Inspectable

Methods

getInspectable(Object)

public abstract com.froglogic.squish.extension.Inspectable getInspectable(java.lang.Object obj);

Parameters
objthe object
returnAn Inspectable for this object obj, or null if non found

Get Inspectable that for an object.

getRegistry()

public static final com.froglogic.squish.extension.InspectableRegistry getRegistry();

Parameters
returnThe global registry

Get global registry.

register(InspectableFactory)

public abstract void register(com.froglogic.squish.extension.InspectableFactory factory);

Parameters
factorythe factory to register

Register the factory in the registry.

setRegistry(InspectableRegistry)

public static final void setRegistry(com.froglogic.squish.extension.InspectableRegistry r);

Set global registry.