1 19 20 21 package org.netbeans.tests.j2eeserver.plugin.jsr88; 22 23 import javax.enterprise.deploy.spi.exceptions.*; 24 import javax.enterprise.deploy.spi.*; 25 import java.beans.*; 26 import javax.enterprise.deploy.model.*; 27 28 29 33 public class ResourceRefConfigBean implements DConfigBean { 34 35 DDBean bean; 36 DepConfig config; 37 EjbModuleConfigBean module; 38 39 public ResourceRefConfigBean(DDBean bean, DepConfig config) { 40 this.bean = bean; this.config = config; 41 this.resourceName = bean.getText(); 42 } 43 44 public ResourceRefConfigBean(DDBean bean, EjbModuleConfigBean module, DepConfig config) { 45 this(bean, config); 46 this.module = module; 47 } 48 49 public DConfigBean getDConfigBean(DDBean dDBean) throws ConfigurationException { 50 return null; 51 } 52 53 public DDBean getDDBean() { 54 return bean; 55 } 56 57 public String [] getXpaths() { 58 return null; 59 } 60 61 public void notifyDDChange(XpathEvent xpathEvent) { 62 } 63 64 public void removeDConfigBean(DConfigBean dConfigBean) throws BeanNotFoundException { 65 } 66 67 68 private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this); 69 70 71 private String resourceName; 72 73 74 private String jndiName; 75 76 public void addPropertyChangeListener(PropertyChangeListener listener) { 77 propertyChangeSupport.addPropertyChangeListener(listener); 78 } 79 80 public void removePropertyChangeListener(PropertyChangeListener listener) { 81 propertyChangeSupport.removePropertyChangeListener(listener); 82 } 83 84 87 public String getResourceName() { 88 return this.resourceName; 89 } 90 91 94 public String getJndiName() { 95 return this.jndiName; 96 } 97 98 101 public void setJndiName(String jndiName) { 102 String oldJndiName = this.jndiName; 103 this.jndiName = jndiName; 104 propertyChangeSupport.firePropertyChange("jndiName", oldJndiName, jndiName); 105 } 106 107 } 108 | Popular Tags |