1 22 package org.jboss.deployment.spi.beans; 23 24 import java.beans.PropertyChangeListener ; 25 import java.util.jar.JarOutputStream ; 26 27 import javax.enterprise.deploy.model.DDBean ; 28 import javax.enterprise.deploy.model.DDBeanRoot ; 29 import javax.enterprise.deploy.model.DeployableObject ; 30 import javax.enterprise.deploy.model.XpathEvent ; 31 import javax.enterprise.deploy.spi.DConfigBean ; 32 import javax.enterprise.deploy.spi.DConfigBeanRoot ; 33 import javax.enterprise.deploy.spi.exceptions.BeanNotFoundException ; 34 import javax.enterprise.deploy.spi.exceptions.ConfigurationException ; 35 36 import org.jboss.deployment.spi.DeploymentMetaData; 37 38 46 public abstract class JBossConfigBeanProxy implements DConfigBeanRoot 47 { 48 49 protected AbstractJBossConfigBean myBean; 50 protected DeployableObject myDeployable; 51 52 protected void setBean(AbstractJBossConfigBean bean, DeployableObject deployable) 53 { 54 myBean = bean; 55 myDeployable = deployable; 56 } 57 58 61 public abstract DConfigBean getDConfigBean(DDBeanRoot arg0); 62 63 public DDBean getDDBean() 64 { 65 return myBean.getDDBean(); 66 } 67 68 public String [] getXpaths() 69 { 70 return myBean.getXpaths(); 71 } 72 73 public DConfigBean getDConfigBean(DDBean bean) throws ConfigurationException 74 { 75 return myBean.getDConfigBean(bean); 76 } 77 78 public void removeDConfigBean(DConfigBean arg0) throws BeanNotFoundException 79 { 80 myBean.removeDConfigBean(arg0); 81 } 82 83 public void notifyDDChange(XpathEvent arg0) 84 { 85 myBean.notifyDDChange(arg0); 86 } 87 88 public void addPropertyChangeListener(PropertyChangeListener arg0) 89 { 90 myBean.addPropertyChangeListener(arg0); 91 } 92 93 public void removePropertyChangeListener(PropertyChangeListener arg0) 94 { 95 myBean.removePropertyChangeListener(arg0); 96 } 97 98 public void save(JarOutputStream jos, DeploymentMetaData metaData) 99 { 100 myBean.save(jos, metaData); 101 } 102 103 } 104 | Popular Tags |