org.rhq.plugins.jbossas.util
Class JBossMessagingConfigurationEditor

java.lang.Object
  extended by org.rhq.plugins.jbossas.util.AbstractMessagingConfigurationEditor
      extended by org.rhq.plugins.jbossas.util.JBossMessagingConfigurationEditor
All Implemented Interfaces:
XMLConfigurationEditor

public class JBossMessagingConfigurationEditor
extends AbstractMessagingConfigurationEditor
implements XMLConfigurationEditor

Author:
Mark Spritzler, Heiko W. Rupp

Field Summary
 
Fields inherited from class org.rhq.plugins.jbossas.util.AbstractMessagingConfigurationEditor
ATTRIBUTE, code, config, createReport, DEPENDS, deploymentFile, LOG, root, rootElementString, securityConfig, type, updateReport
 
Fields inherited from interface org.rhq.plugins.jbossas.util.XMLConfigurationEditor
CONNECTION_MBEAN_NAME, DATASOURCE_MBEAN_NAME, DATASOURCE_ROOT_ELEMENT, JMQ_QUEUE_CODE, JMQ_TOPIC_CODE, JMS_ROOT_ELEMENT, LIST_ATTRIBUTE, LIST_DEFAULT, LIST_SUBTAG, LOCAL_TX_TYPE, MAP_ATTRIBUTE, MAP_DEFAULT, MAP_SUBTAG, NO_TX_TYPE, SIMPLE_ATTRIBUTE, SIMPLE_DEFAULT, SIMPLE_SUBTAG, XA_TX_TYPE
 
Constructor Summary
JBossMessagingConfigurationEditor(String type)
           
 
Method Summary
 void updateConfiguration(File deploymentFile, String name, ConfigurationUpdateReport report)
          This method will save a Configuration object into the xml file supplied where the component already existing.
 void updateConfiguration(File deploymentFile, String name, CreateResourceReport report)
          This method will save a Configuration object into the xml file supplied where the component does not already existing.
 
Methods inherited from class org.rhq.plugins.jbossas.util.AbstractMessagingConfigurationEditor
addNameAttributeToMBeanElement, bindSimplePropertiesToConfiguration, bindSimplePropertiesToXML, deleteComponent, findComponentElement, findSecurityConf, getNameProperty, getRootElementString, getType, loadConfiguration, loadNameProperty, setRootElementString, setType, updateFile, updateIfNameChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rhq.plugins.jbossas.util.XMLConfigurationEditor
deleteComponent, loadConfiguration
 

Constructor Detail

JBossMessagingConfigurationEditor

public JBossMessagingConfigurationEditor(String type)
Method Detail

updateConfiguration

public void updateConfiguration(File deploymentFile,
                                String name,
                                ConfigurationUpdateReport report)
Description copied from interface: XMLConfigurationEditor
This method will save a Configuration object into the xml file supplied where the component already existing. The

Specified by:
updateConfiguration in interface XMLConfigurationEditor
Parameters:
deploymentFile - @see File object for the xml file to updated
name - name of the component in the xml file to save
report - the Plugin's @see ConfigurationUpdateReport that holds the new configuration.
See Also:
will be updated with the success or failure of the update. If there is a failure an error message will be added to the report.

updateConfiguration

public void updateConfiguration(File deploymentFile,
                                String name,
                                CreateResourceReport report)
Description copied from interface: XMLConfigurationEditor
This method will save a Configuration object into the xml file supplied where the component does not already existing. This means this is a new Resource being created, the file may or may not already exist. If it doesn't exist a new file is created, if it does, the configuration will be appended to the file in the appropriate place. The @see CreateResourceReport will be updated with the success or failure of the update. If there is a failure an error message will be added to the report.

Specified by:
updateConfiguration in interface XMLConfigurationEditor
Parameters:
deploymentFile - @see File object for the xml file to created or updated
name - name of the component for the xml file to save
report - the Plugin's @see CreateResourceReport that holds the new configuration.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.