|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.config.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 |
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 |
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 |
addLog4jProperty, getDebug, getFromAddr, getLog4jProperties, 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 setName(java.lang.String name)
public java.lang.String getName()
public final void setAppName(java.lang.String name)
setAppName in class OpenEaiObjectpublic final java.lang.String getAppName()
getAppName in class OpenEaiObjectpublic void setType(java.lang.String type)
public java.lang.String getType()
public final void setValidation(boolean validate)
public final boolean getValidation()
public final void setConfigDoc(org.jdom.Document configDoc)
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.
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 | ||||||||||