org.objectweb.jonas.management
Class ReconfiguratorXml

java.lang.Object
  extended by org.objectweb.jonas.management.AbsReconfigurator
      extended by org.objectweb.jonas.management.ReconfiguratorXml
All Implemented Interfaces:
Reconfigurator

public class ReconfiguratorXml
extends AbsReconfigurator

This class allows for persistent reconfiguration of a JOnAS service or of a JOnAS resource being configured by a .xml file.


Field Summary
 
Fields inherited from class org.objectweb.jonas.management.AbsReconfigurator
configFileName, lastSequence, logger, name
 
Constructor Summary
ReconfiguratorXml(java.lang.String name, java.lang.String configFileName, java.lang.String xml)
          Construct a reconfigurator for a JOnAS service or a JOnAS resource
 
Method Summary
 void saveConfig(long sequence)
          Saves the updated configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconfiguratorXml

public ReconfiguratorXml(java.lang.String name,
                         java.lang.String configFileName,
                         java.lang.String xml)
Construct a reconfigurator for a JOnAS service or a JOnAS resource

Parameters:
name - Name of the JOnAS service or JOnAS resource to which this object is associated
configFileName - name of the config file
xml - XML content of the file
Method Detail

saveConfig

public void saveConfig(long sequence)
                throws ReconfigException
Saves the updated configuration

Specified by:
saveConfig in interface Reconfigurator
Specified by:
saveConfig in class AbsReconfigurator
Parameters:
sequence - the sequence number of management notification producing the save (in fact store) operation
Throws:
ReconfigException - if the saveConfig could not be done