|
||||||||||
| 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 String |
ATTRIBUTE
|
protected String |
code
|
protected org.rhq.core.domain.configuration.Configuration |
config
Configuration object for the resource. |
protected CreateResourceReport |
createReport
|
protected static String |
DEPENDS
|
protected 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 String |
rootElementString
Root Element of the xml file. |
protected String |
securityConfig
|
protected String |
type
Holds the type of JMS |
protected ConfigurationUpdateReport |
updateReport
|
| Constructor Summary | |
|---|---|
AbstractMessagingConfigurationEditor()
|
|
| Method Summary | |
|---|---|
protected void |
addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
String name)
|
protected void |
bindSimplePropertiesToConfiguration(String[] properties,
String elementName,
String attributeName,
org.jdom.Element componentElement)
|
protected void |
bindSimplePropertiesToXML(String elementName,
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(File deploymentFile,
String name)
|
protected org.jdom.Element |
findComponentElement(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 String |
getNameProperty()
|
String |
getRootElementString()
Getter method |
String |
getType()
Getter method |
org.rhq.core.domain.configuration.Configuration |
loadConfiguration(File file,
String name)
|
protected void |
loadNameProperty(org.jdom.Element mbeanElement)
|
void |
setRootElementString(String rootElement)
Setter method |
void |
setType(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 String DEPENDS
protected String type
protected String code
protected String rootElementString
protected org.jdom.Element root
protected org.rhq.core.domain.configuration.Configuration config
objectsprotected CreateResourceReport createReport
protected ConfigurationUpdateReport updateReport
protected File deploymentFile
protected String securityConfig
protected static final String ATTRIBUTE
| Constructor Detail |
|---|
public AbstractMessagingConfigurationEditor()
| Method Detail |
|---|
public void deleteComponent(File deploymentFile,
String name)
protected void bindSimplePropertiesToXML(String elementName,
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(String[] properties,
String elementName,
String attributeName,
org.jdom.Element componentElement)
protected org.jdom.Element findComponentElement(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 String getNameProperty()
protected void updateIfNameChanged(org.jdom.Element mbeanElement)
protected void addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
String name)
protected void updateFile(org.jdom.Document doc)
throws org.jdom.JDOMException,
IOException
doc - JDom Document object for the file
org.jdom.JDOMException - If JDOM cannot process the Document object
IOException - If there is an exception when dealing with the File object.public String getRootElementString()
public void setRootElementString(String rootElement)
rootElement - root element name. i.e. "datasources"public String getType()
public void setType(String type)
type - component type. i.e. "local-tx-datasource"
public org.rhq.core.domain.configuration.Configuration loadConfiguration(File file,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||