org.objectweb.jonas.resource
Class RarConfigMBean

java.lang.Object
  extended byorg.apache.commons.modeler.BaseModelMBean
      extended byorg.objectweb.jonas.resource.ArchiveConfigMBean
          extended byorg.objectweb.jonas.resource.RarConfigMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class RarConfigMBean
extends ArchiveConfigMBean

A RAR specific MBean which provides the schemas and EntityResolver needed to validate a jonas-ra.xml file or an ra.xml file.

Author:
Patrick Smith, Greg Lapouchnian

Field Summary
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
RarConfigMBean()
          A default constructor which calls the parent constructor.
 
Method Summary
 org.xml.sax.EntityResolver getEntityResolver()
          Returns an EntityResolver for the schemas and dtds of ra.xml and jonas-ra.xml.
protected  org.w3c.dom.Node getJDBCParams(org.w3c.dom.Document doc)
           
protected  java.util.TreeMap getJDBCTagMap()
           
protected  org.w3c.dom.Node getPoolParams(org.w3c.dom.Document doc)
           
protected  java.util.TreeMap getPoolTagMap()
           
protected  java.util.List getSchemaList()
          Get a list of schemas available for RARs.
 void updateXML(java.lang.String archiveName, java.util.Map map)
           
 
Methods inherited from class org.objectweb.jonas.resource.ArchiveConfigMBean
addXML, createArchiveWithXmlFile, extractDocument, extractXML, saveXML, verifyDocument
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RarConfigMBean

public RarConfigMBean()
               throws javax.management.MBeanException
A default constructor which calls the parent constructor.

Throws:
javax.management.MBeanException - from the super class.
Method Detail

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()
Returns an EntityResolver for the schemas and dtds of ra.xml and jonas-ra.xml.

Overrides:
getEntityResolver in class ArchiveConfigMBean
Returns:
an EntityResolver for the schemas and dtds for ra.xml and jonas-ra.xml.

getSchemaList

protected java.util.List getSchemaList()
Get a list of schemas available for RARs.

Overrides:
getSchemaList in class ArchiveConfigMBean
Returns:
a list of schemas for RAR validation.

updateXML

public void updateXML(java.lang.String archiveName,
                      java.util.Map map)
               throws java.lang.Exception
Throws:
java.lang.Exception

getJDBCTagMap

protected java.util.TreeMap getJDBCTagMap()

getPoolTagMap

protected java.util.TreeMap getPoolTagMap()

getPoolParams

protected org.w3c.dom.Node getPoolParams(org.w3c.dom.Document doc)

getJDBCParams

protected org.w3c.dom.Node getJDBCParams(org.w3c.dom.Document doc)