|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.component.ComponentFactory
Uses an IXMLDataSource to get Configuration XML for the factory.
<SystemObject type="ConfigurableObjectFactory" name="[ name of this factory ]"
configurableClass="com.raritantechnologies.searchApp.component.ComponentFacory"
objectNameAttribute="[ Optional - name of XML attribute that contains object name(s) ]" >
<ConfigurationSource class="[ class of com.raritantechnologies.xml.dataCollection.IXMLDataSource ]" >
</ConfigurationSource>
</SystemObject>
| Constructor Summary | |
ComponentFactory()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentFactory()
| Method Detail |
public void setConfigElement(org.w3c.dom.Element elem)
setConfigElement in interface IConfigurableFactorypublic IConfigurable getConfiguredObject()
getConfiguredObject in interface IConfigurableFactorypublic boolean hasConfiguredObject(java.lang.String objectName)
IConfigurableFactory
hasConfiguredObject in interface IConfigurableFactorypublic java.util.Iterator getConfiguredObjectNames()
getConfiguredObjectNames in interface IConfigurableFactorypublic IConfigurable getConfiguredObject(java.lang.String objectName)
getConfiguredObject in interface IConfigurableFactorypublic boolean isInitialized()
isInitialized in interface IConfigurableFactorypublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurableFactorypublic org.w3c.dom.Element getInitializer(java.lang.String objectName)
getInitializer in interface IConfigurableFactorypublic org.w3c.dom.Element getInitializer()
getInitializer in interface IConfigurableFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||