org.jboss.deployment.spi.beans
Class AbstractJBossConfigBean

java.lang.Object
  extended by org.jboss.deployment.spi.beans.AbstractJBossConfigBean
All Implemented Interfaces:
javax.enterprise.deploy.spi.DConfigBean
Direct Known Subclasses:
AbstractJBossConfigBean.JBossNullConfigBean, JBossExample2ConfigBeanRoot.JBossExample2OtherSubConfigBean, JBossExample2ConfigBeanRoot.JBossExample2SubElementConfigBean, WarConfigBeanRoot.JbossWebConfigBean

public abstract class AbstractJBossConfigBean
extends Object
implements javax.enterprise.deploy.spi.DConfigBean

Version:
$Revision: 1.4.2.1 $
Author:
Rob Stryker

Nested Class Summary
 class AbstractJBossConfigBean.JBossNullConfigBean
           
 
Field Summary
protected  ArrayList children
           
protected  javax.enterprise.deploy.model.DDBean myBean
           
protected  ConfigBeanXPaths myPath
           
protected  ArrayList myPropertyListeners
           
protected  javax.enterprise.deploy.spi.DConfigBeanRoot myRoot
           
protected  HashMap xpaths
           
 
Constructor Summary
AbstractJBossConfigBean(javax.enterprise.deploy.model.DDBean bean, javax.enterprise.deploy.spi.DConfigBeanRoot root, ConfigBeanXPaths path)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener pcl)
           
protected abstract  ConfigBeanXPaths buildXPathList()
           
protected  void death()
           
 javax.enterprise.deploy.spi.DConfigBean getDConfigBean(javax.enterprise.deploy.model.DDBean bean)
           
 javax.enterprise.deploy.model.DDBean getDDBean()
           
 String getPath()
           
 String[] getXpaths()
           
 void notifyDDChange(javax.enterprise.deploy.model.XpathEvent arg0)
           
 void removeDConfigBean(javax.enterprise.deploy.spi.DConfigBean bean)
          Removes the xpath of a given configbean from the list of this bean's xpaths (children so to speak).
 void removePropertyChangeListener(PropertyChangeListener pcl)
           
 void save(JarOutputStream stream, DeploymentMetaData metaData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myBean

protected javax.enterprise.deploy.model.DDBean myBean

myPropertyListeners

protected ArrayList myPropertyListeners

xpaths

protected HashMap xpaths

myRoot

protected javax.enterprise.deploy.spi.DConfigBeanRoot myRoot

myPath

protected ConfigBeanXPaths myPath

children

protected ArrayList children
Constructor Detail

AbstractJBossConfigBean

public AbstractJBossConfigBean(javax.enterprise.deploy.model.DDBean bean,
                               javax.enterprise.deploy.spi.DConfigBeanRoot root,
                               ConfigBeanXPaths path)
Method Detail

getDDBean

public javax.enterprise.deploy.model.DDBean getDDBean()
Specified by:
getDDBean in interface javax.enterprise.deploy.spi.DConfigBean

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener pcl)
Specified by:
addPropertyChangeListener in interface javax.enterprise.deploy.spi.DConfigBean

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener pcl)
Specified by:
removePropertyChangeListener in interface javax.enterprise.deploy.spi.DConfigBean

removeDConfigBean

public void removeDConfigBean(javax.enterprise.deploy.spi.DConfigBean bean)
                       throws javax.enterprise.deploy.spi.exceptions.BeanNotFoundException
Removes the xpath of a given configbean from the list of this bean's xpaths (children so to speak). Then calls death.

Specified by:
removeDConfigBean in interface javax.enterprise.deploy.spi.DConfigBean
Throws:
javax.enterprise.deploy.spi.exceptions.BeanNotFoundException

getXpaths

public String[] getXpaths()
Specified by:
getXpaths in interface javax.enterprise.deploy.spi.DConfigBean

getDConfigBean

public javax.enterprise.deploy.spi.DConfigBean getDConfigBean(javax.enterprise.deploy.model.DDBean bean)
                                                       throws javax.enterprise.deploy.spi.exceptions.ConfigurationException
Specified by:
getDConfigBean in interface javax.enterprise.deploy.spi.DConfigBean
Throws:
javax.enterprise.deploy.spi.exceptions.ConfigurationException

getPath

public String getPath()

death

protected void death()

notifyDDChange

public void notifyDDChange(javax.enterprise.deploy.model.XpathEvent arg0)
Specified by:
notifyDDChange in interface javax.enterprise.deploy.spi.DConfigBean

save

public void save(JarOutputStream stream,
                 DeploymentMetaData metaData)

buildXPathList

protected abstract ConfigBeanXPaths buildXPathList()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.