org.apache.geronimo.connector.deployment.jsr88
Class Connector15DCBRoot

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.XmlBeanSupport
      extended by org.apache.geronimo.deployment.plugin.DConfigBeanSupport
          extended by org.apache.geronimo.deployment.plugin.DConfigBeanRootSupport
              extended by org.apache.geronimo.connector.deployment.jsr88.Connector15DCBRoot
All Implemented Interfaces:
DConfigBean, DConfigBeanRoot

public class Connector15DCBRoot
extends DConfigBeanRootSupport

Represents "/" in a Geronimo Connector deployment plan (geronimo-ra.xml). The only function here is to navigate to an appropriate "Connector" DConfigBean.


Field Summary
 
Fields inherited from class org.apache.geronimo.deployment.plugin.XmlBeanSupport
pcs
 
Constructor Summary
Connector15DCBRoot(DDBeanRoot ddBean)
           
 
Method Summary
 void fromXML(InputStream inputStream)
          When loaded, reset the cached "connector" child
 DConfigBean getDConfigBean(DDBean bean)
           
protected  org.apache.xmlbeans.SchemaTypeLoader getSchemaTypeLoader()
           
 String[] getXpaths()
           
 void toXML(OutputStream outputStream)
          A little trickery -- on a save event, temporarily remove any config-property-setting elements with a null value, and then immediately replace them again.
 
Methods inherited from class org.apache.geronimo.deployment.plugin.DConfigBeanRootSupport
getDConfigBean
 
Methods inherited from class org.apache.geronimo.deployment.plugin.DConfigBeanSupport
getDDBean, getXPathsForJ2ee_1_4, getXPathsFromNamespace, getXPathsWithPrefix, notifyDDChange, removeDConfigBean, setParent
 
Methods inherited from class org.apache.geronimo.deployment.plugin.XmlBeanSupport
addPropertyChangeListener, configured, getXmlObject, isEmpty, removePropertyChangeListener, setXmlObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.enterprise.deploy.spi.DConfigBean
addPropertyChangeListener, getDDBean, notifyDDChange, removeDConfigBean, removePropertyChangeListener
 

Constructor Detail

Connector15DCBRoot

public Connector15DCBRoot(DDBeanRoot ddBean)
Method Detail

getXpaths

public String[] getXpaths()
Specified by:
getXpaths in interface DConfigBean
Overrides:
getXpaths in class DConfigBeanSupport

getDConfigBean

public DConfigBean getDConfigBean(DDBean bean)
                           throws ConfigurationException
Specified by:
getDConfigBean in interface DConfigBean
Overrides:
getDConfigBean in class DConfigBeanSupport
Throws:
ConfigurationException

getSchemaTypeLoader

protected org.apache.xmlbeans.SchemaTypeLoader getSchemaTypeLoader()
Overrides:
getSchemaTypeLoader in class XmlBeanSupport

fromXML

public void fromXML(InputStream inputStream)
             throws org.apache.xmlbeans.XmlException,
                    IOException
When loaded, reset the cached "connector" child

Overrides:
fromXML in class XmlBeanSupport
Throws:
org.apache.xmlbeans.XmlException
IOException

toXML

public void toXML(OutputStream outputStream)
           throws IOException
A little trickery -- on a save event, temporarily remove any config-property-setting elements with a null value, and then immediately replace them again. This is because we don't want to write them out as null, but we also want to keep the objects in sync 1:1 with the config params declared in the J2EE deployment descriptor.

Overrides:
toXML in class XmlBeanSupport
Throws:
IOException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.