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