|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.ConfigurableObjectFactory
General factory for IConfigurable objects. The base implementation ensures that different instances of
an IConfigurable object will be created when requested from ConfigurationManager.getSystemObject( ).
If a Configurable Singleton is needed, create a ConfigurableObjectFactory subclass, instantiate it in the Config XML by setting the factoryClass attribute and cache the IConfigurable object in the Factory class.
| Constructor Summary | |
ConfigurableObjectFactory()
|
|
ConfigurableObjectFactory(org.w3c.dom.Element elem)
|
|
| Method Summary | |
static IConfigurable |
getConfigurableChild(org.w3c.dom.Element elem,
java.lang.String tagName)
|
static java.util.List |
getConfigurableChildren(org.w3c.dom.Element elem,
java.lang.String tagName)
|
IConfigurable |
getConfiguredObject()
Returns an instantiated IConfigurable object or null if the configuration DOM Element has not been initialized. |
static IConfigurable |
getConfiguredObject(org.w3c.dom.Element configElem)
|
static IConfigurable |
getConfiguredObject(org.w3c.dom.Element configElem,
java.lang.String classAttrib)
|
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()
|
void |
setConfigElement(org.w3c.dom.Element elem)
Caches the DOM Element needed to instantiate IConfigurable objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConfigurableObjectFactory()
public ConfigurableObjectFactory(org.w3c.dom.Element elem)
| Method Detail |
public void setConfigElement(org.w3c.dom.Element elem)
setConfigElement in interface IConfigurableFactorypublic IConfigurable getConfiguredObject()
getConfiguredObject in interface IConfigurableFactorypublic IConfigurable getConfiguredObject(java.lang.String objectName)
getConfiguredObject in interface IConfigurableFactorypublic boolean hasConfiguredObject(java.lang.String objectName)
IConfigurableFactory
hasConfiguredObject in interface IConfigurableFactorypublic java.util.Iterator getConfiguredObjectNames()
IConfigurableFactory
getConfiguredObjectNames in interface IConfigurableFactorypublic void initialize(org.w3c.dom.Element elem)
initialize in interface IConfigurableFactorypublic boolean isInitialized()
isInitialized in interface IConfigurableFactorypublic static IConfigurable getConfiguredObject(org.w3c.dom.Element configElem)
public static IConfigurable getConfiguredObject(org.w3c.dom.Element configElem,
java.lang.String classAttrib)
public static IConfigurable getConfigurableChild(org.w3c.dom.Element elem,
java.lang.String tagName)
public static java.util.List getConfigurableChildren(org.w3c.dom.Element elem,
java.lang.String tagName)
public org.w3c.dom.Element getInitializer()
getInitializer in interface IConfigurableFactorypublic org.w3c.dom.Element getInitializer(java.lang.String objectName)
IConfigurableFactory
getInitializer in interface IConfigurableFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||