org.ow2.jonas.resource.internal.mbean
Class RarConfigMBean

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.ow2.jonas.resource.internal.mbean.ArchiveConfigMBean
          extended by org.ow2.jonas.resource.internal.mbean.RarConfigMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, 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
 EntityResolver getEntityResolver()
          Returns an EntityResolver for the schemas and dtds of ra.xml and jonas-ra.xml.
protected  Node getJDBCParams(Document doc)
           
protected  TreeMap getJDBCTagMap()
           
protected  Node getPoolParams(Document doc)
           
protected  TreeMap getPoolTagMap()
           
protected  List getSchemaList()
          Get a list of schemas available for RARs.
 void updateXML(String archiveName, Map map)
           
 
Methods inherited from class org.ow2.jonas.resource.internal.mbean.ArchiveConfigMBean
addXML, createArchiveWithXmlFile, extractDocument, extractXML, saveXML, verifyDocument
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, 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 MBeanException
A default constructor which calls the parent constructor.

Throws:
MBeanException - from the super class.
Method Detail

getEntityResolver

public 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 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(String archiveName,
                      Map map)
               throws Exception
Throws:
Exception

getJDBCTagMap

protected TreeMap getJDBCTagMap()

getPoolTagMap

protected TreeMap getPoolTagMap()

getPoolParams

protected Node getPoolParams(Document doc)

getJDBCParams

protected Node getJDBCParams(Document doc)


Copyright © 2010 OW2 Consortium. All Rights Reserved.