|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.jbossas.util.AbstractMessagingConfigurationEditor
public class AbstractMessagingConfigurationEditor
Common base class for MessagingConfig related stuff
| Field Summary | |
|---|---|
protected static java.lang.String |
ATTRIBUTE
|
protected java.lang.String |
code
|
protected Configuration |
config
Configuration object for the resource. |
protected CreateResourceReport |
createReport
|
protected static java.lang.String |
DEPENDS
|
protected java.io.File |
deploymentFile
File object of the XML file that will store the resource's configuration values. |
protected static org.apache.commons.logging.Log |
LOG
|
protected org.jdom.Element |
root
Root Element of the XML File. |
protected java.lang.String |
rootElementString
Root Element of the xml file. |
protected java.lang.String |
securityConfig
|
protected java.lang.String |
type
Holds the type of JMS |
protected ConfigurationUpdateReport |
updateReport
|
| Constructor Summary | |
|---|---|
AbstractMessagingConfigurationEditor()
|
|
| Method Summary | |
|---|---|
protected void |
addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
java.lang.String name)
|
protected void |
bindSimplePropertiesToConfiguration(java.lang.String[] properties,
java.lang.String elementName,
java.lang.String attributeName,
org.jdom.Element componentElement)
|
protected void |
bindSimplePropertiesToXML(java.lang.String elementName,
java.lang.String attributeName,
org.jdom.Element componentElement)
Takes the child elements of the componentElement and loops through them to find the particular property via the looped elements attribute and creates the PropertySimple objects to attach to the @see Configuration object |
void |
deleteComponent(java.io.File deploymentFile,
java.lang.String name)
|
protected org.jdom.Element |
findComponentElement(java.lang.String name)
Finds the main Element object that holds all the configuration for the particular component. |
protected org.jdom.Element |
findSecurityConf(org.jdom.Element componentElement)
Gets the Element for the component that holds the Security Confs for Roles. |
protected java.lang.String |
getNameProperty()
|
java.lang.String |
getRootElementString()
Getter method |
java.lang.String |
getType()
Getter method |
Configuration |
loadConfiguration(java.io.File file,
java.lang.String name)
|
protected void |
loadNameProperty(org.jdom.Element mbeanElement)
|
void |
setRootElementString(java.lang.String rootElement)
Setter method |
void |
setType(java.lang.String type)
Setter method |
protected void |
updateFile(org.jdom.Document doc)
Updates the file. |
protected void |
updateIfNameChanged(org.jdom.Element mbeanElement)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
protected static final java.lang.String DEPENDS
protected java.lang.String type
protected java.lang.String code
protected java.lang.String rootElementString
protected org.jdom.Element root
protected Configuration config
objectsprotected CreateResourceReport createReport
protected ConfigurationUpdateReport updateReport
protected java.io.File deploymentFile
protected java.lang.String securityConfig
protected static final java.lang.String ATTRIBUTE
| Constructor Detail |
|---|
public AbstractMessagingConfigurationEditor()
| Method Detail |
|---|
public void deleteComponent(java.io.File deploymentFile,
java.lang.String name)
protected void bindSimplePropertiesToXML(java.lang.String elementName,
java.lang.String attributeName,
org.jdom.Element componentElement)
elementName - String representing the type of Element to get.attributeName - What is the property name to find within the childrencomponentElement - Element representing this Topic or Queue
protected void bindSimplePropertiesToConfiguration(java.lang.String[] properties,
java.lang.String elementName,
java.lang.String attributeName,
org.jdom.Element componentElement)
protected org.jdom.Element findComponentElement(java.lang.String name)
name - String Topic or Queue name
protected org.jdom.Element findSecurityConf(org.jdom.Element componentElement)
componentElement - components main Element
protected void loadNameProperty(org.jdom.Element mbeanElement)
protected java.lang.String getNameProperty()
protected void updateIfNameChanged(org.jdom.Element mbeanElement)
protected void addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
java.lang.String name)
protected void updateFile(org.jdom.Document doc)
throws org.jdom.JDOMException,
java.io.IOException
doc - JDom Document object for the file
org.jdom.JDOMException - If JDOM cannot process the Document object
java.io.IOException - If there is an exception when dealing with the File object.public java.lang.String getRootElementString()
public void setRootElementString(java.lang.String rootElement)
rootElement - root element name. i.e. "datasources"public java.lang.String getType()
public void setType(java.lang.String type)
type - component type. i.e. "local-tx-datasource"
public Configuration loadConfiguration(java.io.File file,
java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||