org.jboss.deployment.spi
Class DConfigBeanImpl

java.lang.Object
  extended byorg.jboss.deployment.spi.DConfigBeanImpl
All Implemented Interfaces:
DConfigBean (src)
Direct Known Subclasses:
DConfigBeanRootImpl (src)

public class DConfigBeanImpl
extends java.lang.Object
implements DConfigBean (src)

The DConfigBean is a deployment configuration bean (DConfigBean) that is associated with one or more deployment descriptor beans, (DDBean). A DConfigBean represents a logical grouping of deployment configuration data to be presented to the Deployer. A DConfigBean provides zero or more XPaths that identifies the XML information it requires. A DConfigBean may contain other DConfigBeans and regular JavaBeans. The top most DConfigBean is a DConfigBeanRoot object which represents a single XML instance document.


Constructor Summary
DConfigBeanImpl()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a property change listener
 DConfigBean (src) getDConfigBean(DDBean (src)  bean)
          Return the JavaBean containing server specific deployment information
 DDBean (src) getDDBean()
          Get the XML text for this configuration
 java.lang.String[] getXpaths()
          Get the xpaths this deployment descriptor requires
 void notifyDDChange(XpathEvent (src)  event)
          A notification that the DDBean provided has changed and that this bean or child needs re-evaluating
 void removeDConfigBean(DConfigBean (src)  bean)
          Remove a child
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a property change listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DConfigBeanImpl

public DConfigBeanImpl()
Method Detail

getDDBean

public DDBean (src)  getDDBean()
Get the XML text for this configuration

Specified by:
getDDBean in interface DConfigBean (src)
Returns:
the xml text

getXpaths

public java.lang.String[] getXpaths()
Get the xpaths this deployment descriptor requires

Specified by:
getXpaths in interface DConfigBean (src)
Returns:
the xpaths

getDConfigBean

public DConfigBean (src)  getDConfigBean(DDBean (src)  bean)
                           throws ConfigurationException (src) 
Return the JavaBean containing server specific deployment information

Specified by:
getDConfigBean in interface DConfigBean (src)
Parameters:
bean - the xml data to be evaluated
Returns:
the server specific configuration
Throws:
ConfigurationException (src) - for errors generating the configuring bean

removeDConfigBean

public void removeDConfigBean(DConfigBean (src)  bean)
                       throws BeanNotFoundException (src) 
Remove a child

Specified by:
removeDConfigBean in interface DConfigBean (src)
Parameters:
bean - the child
Throws:
BeanNotFoundException (src) - when the bean is not found

notifyDDChange

public void notifyDDChange(XpathEvent (src)  event)
A notification that the DDBean provided has changed and that this bean or child needs re-evaluating

Specified by:
notifyDDChange in interface DConfigBean (src)
Parameters:
event - the event

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener

Specified by:
addPropertyChangeListener in interface DConfigBean (src)
Parameters:
listener - the listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener

Specified by:
removePropertyChangeListener in interface DConfigBean (src)
Parameters:
listener - the listener