com.raritantechnologies.xml.dataCollection
Class XMLSourceConfigurableObjectFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.ConfigurableObjectFactory
      extended bycom.raritantechnologies.xml.dataCollection.XMLSourceConfigurableObjectFactory
All Implemented Interfaces:
IConfigurable, IConfigurableFactory

public class XMLSourceConfigurableObjectFactory
extends ConfigurableObjectFactory

A Configurable Object Factory that uses an IXMLDataSource to get persisted RTI Configuration XML Elements.

XML Configuration Template:
  <SystemObject type="ConfigurableObjectFactory" name="[ object factory name ]"
                   configurableClass="com.raritantechnologies.xml.dataCollextion.XMLSourceConfigurableObjectFactory" >

    <!-- One or more XMLDataSource elements: -->
    <XMLDataSource class="[ class of IXMLDataSource ]" >

    </XMLDataSource>

  </SystemObject>
 


Constructor Summary
XMLSourceConfigurableObjectFactory()
           
 
Method Summary
 IConfigurable getConfiguredObject(java.lang.String objectName)
          Returns an instantiated IConfigurable object or null if the configuration DOM Element has not been initialized - does not support multiple objects.
 java.util.Iterator getConfiguredObjectNames()
          Returns a list of the configured objects that are available.
 org.w3c.dom.Element getInitializer()
          Used by Configurable objects that need to have their own constructor.
 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)
          Method called to initialize multiple object mappings.
 boolean isInitialized()
           
 
Methods inherited from class com.raritantechnologies.searchApp.ConfigurableObjectFactory
getConfigurableChild, getConfigurableChildren, getConfiguredObject, getConfiguredObject, getConfiguredObject, setConfigElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSourceConfigurableObjectFactory

public XMLSourceConfigurableObjectFactory()
Method Detail

hasConfiguredObject

public boolean hasConfiguredObject(java.lang.String objectName)
Does this ConfigurableFactory support multiple Configurable Objects?

Specified by:
hasConfiguredObject in interface IConfigurableFactory
Overrides:
hasConfiguredObject in class ConfigurableObjectFactory

getConfiguredObjectNames

public java.util.Iterator getConfiguredObjectNames()
Description copied from interface: IConfigurableFactory
Returns a list of the configured objects that are available.

Specified by:
getConfiguredObjectNames in interface IConfigurableFactory
Overrides:
getConfiguredObjectNames in class ConfigurableObjectFactory

getConfiguredObject

public IConfigurable getConfiguredObject(java.lang.String objectName)
Description copied from class: ConfigurableObjectFactory
Returns an instantiated IConfigurable object or null if the configuration DOM Element has not been initialized - does not support multiple objects.

Specified by:
getConfiguredObject in interface IConfigurableFactory
Overrides:
getConfiguredObject in class ConfigurableObjectFactory

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface IConfigurableFactory
Overrides:
isInitialized in class ConfigurableObjectFactory

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from class: ConfigurableObjectFactory
Method called to initialize multiple object mappings.

Specified by:
initialize in interface IConfigurableFactory
Overrides:
initialize in class ConfigurableObjectFactory

getInitializer

public org.w3c.dom.Element getInitializer(java.lang.String objectName)
Used by Configurable objects that need to have their own constructor.

Specified by:
getInitializer in interface IConfigurableFactory
Overrides:
getInitializer in class ConfigurableObjectFactory

getInitializer

public org.w3c.dom.Element getInitializer()
Description copied from class: ConfigurableObjectFactory
Used by Configurable objects that need to have their own constructor.

Specified by:
getInitializer in interface IConfigurableFactory
Overrides:
getInitializer in class ConfigurableObjectFactory