|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.config.EnterpriseConfigurationObjectImpl
public abstract class EnterpriseConfigurationObjectImpl
The parent class for all of our 'configuration' objects. The reason we add this layer to our configuration strategy is so all our framework components don't have to be 'xml aware'. This way we can abstract that requirement and if we ever decide to use anything besides or in addition to XML for configuration information, we just have to change this layer and not our framework components per se.
| Field Summary |
|---|
| Fields inherited from class org.openeai.OpenEaiObject |
|---|
logger |
| Constructor Summary | |
|---|---|
EnterpriseConfigurationObjectImpl()
Constructor |
|
| Method Summary | |
|---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Adds a general property (name/value pair) to this object's inherited Properties object. |
java.lang.String |
getAppName()
Returns the Application name associated to this configuration object (and the actual object that will be initialized with this configuration object). |
org.jdom.Document |
getConfigDoc()
Returns the deployment/configuration document that is associated to this Configuration object. |
org.jdom.Element |
getConfigElementByAttributeValue(java.lang.String value,
java.lang.String attributeName)
|
org.jdom.Element |
getElementByAttributeValue(org.jdom.Element e,
java.lang.String attrValue)
|
java.lang.String |
getName()
Returns the object name associated to the configuration object being built. |
java.lang.String |
getType()
Returns the type of Configuration object that this is. |
boolean |
getValidation()
Returns a boolean indicating whether or not XML document validation for the deployment documents is turned on or not. |
void |
init(org.jdom.Element configElement)
Provides base initialization. |
boolean |
refresh()
|
void |
setAppName(java.lang.String name)
Sets the Application name associated to this configuration object (and the actual object that will be initialized with this configuration object). |
void |
setConfigDoc(org.jdom.Document configDoc)
Sets the deployment/configuration document that is associated to this Configuration object. |
void |
setName(java.lang.String name)
Sets the object name associated to the configuration object being built. |
void |
setRefresh(boolean refresh)
|
void |
setType(java.lang.String type)
Sets the type of Configuration object that this is. |
void |
setValidation(boolean validate)
This method, along with 'getValidation' are used to determine if the XML configuration document used to configure an application will be validated or not. |
| Methods inherited from class org.openeai.OpenEaiObject |
|---|
getDebug, getFromAddr, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnterpriseConfigurationObjectImpl()
| Method Detail |
|---|
public void init(org.jdom.Element configElement)
throws EnterpriseConfigurationObjectException
configElement - Element the configuration element that AppConfig has pulled from the configuration document
relevant to the configuration object being configured. Or, the element that was found in the init() method.
EnterpriseConfigurationObjectException - if errors occur processing the configuration Element.public void setName(java.lang.String name)
name - String the name of the configuration object (and thus the actual foundation object) specified
in the "name" attribute associated to each configuration Element in the deployment document.public java.lang.String getName()
public final void setAppName(java.lang.String name)
setAppName in class OpenEaiObjectname - String the name of the application to which this object will belong.public final java.lang.String getAppName()
getAppName in class OpenEaiObjectpublic void setType(java.lang.String type)
type. - public java.lang.String getType()
public final void setRefresh(boolean refresh)
public boolean refresh()
public final void setValidation(boolean validate)
validate - boolean true to turn XML validation on false to turn it off.public final boolean getValidation()
public final void setConfigDoc(org.jdom.Document configDoc)
configDoc - Document JDOM Document.public final org.jdom.Document getConfigDoc()
public final void addProperty(java.lang.String key,
java.lang.String value)
Generally, "simple" configuration elements should be considered for use as a general properties and complex configuration elements that have an associated Java object should be specific getter/setter methods in the configuration object.
key - String the property namevalue - String the property value
public final org.jdom.Element getElementByAttributeValue(org.jdom.Element e,
java.lang.String attrValue)
public final org.jdom.Element getConfigElementByAttributeValue(java.lang.String value,
java.lang.String attributeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||