com.raritantechnologies.searchApp
Class FileSystemConfigurableObjectFactory

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

public class FileSystemConfigurableObjectFactory
extends ConfigurableObjectFactory

Provides a Configurable Object Factory given a set of Configuration XML files on a fileshare.

XML Configuration Template
   <SystemObject type="ConfigurableObjectFactory" name="[ object factory name ]" 
                    configurableClass="com.raritantechnologies.searchApp.FileSystemConfigurableObjectFactory" 
                    fileDirectory="[ path to directory with configuration files ]" />
 


Constructor Summary
FileSystemConfigurableObjectFactory()
           
 
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.
 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, getInitializer, getInitializer, setConfigElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemConfigurableObjectFactory

public FileSystemConfigurableObjectFactory()
Method Detail

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

hasConfiguredObject

public boolean hasConfiguredObject(java.lang.String objectName)
Description copied from interface: IConfigurableFactory
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

initialize

public void initialize(org.w3c.dom.Element elem)
Method called to initialize multiple object mappings.

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

isInitialized

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