|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Base interface for Factory objects that can instantiate
IConfigurable objects.
<SystemObjects>
<!-- ================================================================== -->
<!-- Use this configuration to create a ConfigurableFactory instance -->
<!-- that is used by more than one SystemObjects. Make sure that this -->
<!-- object is declared as a 'singleton' instanceType. -->
<!-- ================================================================== -->
<SystemObject type="ConfigurableObjectFactory" name="[ name of Object Factory ]"
configurableClass="[ this factory class name ]"
instanceType="singleton" >
<!-- configuration for this ConfigurableFactory Object -->
</SystemObject>
<!-- Other System Objects can use this type -->
<SystemObject type="[the object type]" name="[the system object instance name]"
configurableClass="[ fully qualified class name of IConfigurable class ]"
factoryClass="[ implementation of IConfigurableObjectFactory ]"
factoryObject="[ name of a IConfigurableFactory Object (as configured above ) ]" >
<!-- other attributes and parameters required by the IConfigurable object's
initialize( ) method -->
</SystemObject>
</SystemObjects>
| Method Summary | |
IConfigurable |
getConfiguredObject()
|
IConfigurable |
getConfiguredObject(java.lang.String objectName)
Returns a configured object given an object name. |
java.util.Iterator |
getConfiguredObjectNames()
Returns a list of the configured objects that are available. |
org.w3c.dom.Element |
getInitializer()
|
org.w3c.dom.Element |
getInitializer(java.lang.String objectName)
Used by Configurable objects that need to have their own constructor. |
boolean |
hasConfiguredObject(java.lang.String objectName)
Does this ConfigurableFactory support multiple Configurable Objects? |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
boolean |
isInitialized()
|
void |
setConfigElement(org.w3c.dom.Element elem)
|
| Method Detail |
public void setConfigElement(org.w3c.dom.Element elem)
public IConfigurable getConfiguredObject()
public boolean hasConfiguredObject(java.lang.String objectName)
public java.util.Iterator getConfiguredObjectNames()
public IConfigurable getConfiguredObject(java.lang.String objectName)
public boolean isInitialized()
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic org.w3c.dom.Element getInitializer(java.lang.String objectName)
public org.w3c.dom.Element getInitializer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||