|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.virtualmock.util.Toolbox
A singleton which manages single instances of other application components. Based on template provided at: http://www.ibm.com/developerworks/webservices/library/co-single.html
| Field Summary | |
static java.lang.String |
CALL_MANAGER
The constant key for the CallManager instance in the Toolbox. |
| Constructor Summary | |
protected |
Toolbox()
Creates a new Toolbox object. |
| Method Summary | |
static void |
deregisterAllComponents()
Deregisters all components. |
static void |
deregisterComponent(java.lang.String componentName)
Deregisters a component from the Toolbox. |
static CallManager |
getCallManager()
Gets the CallManager from the Toolbox. |
static java.lang.Object |
getComponent(java.lang.String componentName)
Gets a component from the Toolbox. |
static Toolbox |
getInstance()
Gets the singleton instance. |
protected void |
initialize()
Performs any custom initialization of the Toolbox. |
static void |
registerComponent(java.lang.String componentName,
java.lang.Object component)
Registers a component in the Toolbox. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CALL_MANAGER
| Constructor Detail |
protected Toolbox()
| Method Detail |
public static CallManager getCallManager()
public static java.lang.Object getComponent(java.lang.String componentName)
componentName - the name of the component to get. Corresponds to a
constant on the Toolbox class.
public static Toolbox getInstance()
public static void deregisterAllComponents()
public static void deregisterComponent(java.lang.String componentName)
componentName - the component to deregister
public static void registerComponent(java.lang.String componentName,
java.lang.Object component)
componentName - the key for the component to register. Corresponds
to a constant on the Toolbox class.component - the component to registerprotected void initialize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||