1 19 20 21 package org.netbeans.tests.j2eeserver.plugin.jsr88; 22 23 import org.netbeans.tests.j2eeserver.plugin.jsr88.ui.EarConfigBeanPanel; 24 25 import javax.enterprise.deploy.spi.exceptions.*; 26 import javax.enterprise.deploy.spi.*; 27 import java.beans.*; 28 import javax.enterprise.deploy.model.*; 29 30 31 35 public class EarConfigBean implements DConfigBeanRoot { 36 37 DDBean bean; 38 DepConfig config; 39 40 public EarConfigBean(DDBean bean,DepConfig config) { 41 this.bean = bean; this.config = config; 42 securityLevel = ""; sessionParam = ""; } 45 46 public DConfigBean getDConfigBean(DDBean dDBean) throws ConfigurationException { 47 return null; 48 } 49 50 public DDBean getDDBean() { 51 return bean; 52 } 53 54 public String [] getXpaths() { 55 return null; 56 } 57 58 public void notifyDDChange(XpathEvent xpathEvent) { 59 } 60 61 public void removeDConfigBean(DConfigBean dConfigBean) throws BeanNotFoundException { 62 } 63 64 65 private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this); 66 67 68 private String securityLevel; 69 70 71 private String sessionParam; 72 73 public void addPropertyChangeListener(PropertyChangeListener listener) { 74 propertyChangeSupport.addPropertyChangeListener(listener); 75 } 76 77 public void removePropertyChangeListener(PropertyChangeListener listener) { 78 propertyChangeSupport.removePropertyChangeListener(listener); 79 } 80 81 85 public String getSecurityLevel() { 86 return this.securityLevel; 87 } 88 89 93 public void setSecurityLevel(String securityLevel) { 94 if (getSecurityLevel().equals(securityLevel.trim())) { 95 return; 96 } 97 String oldSecurityLevel = this.securityLevel; 98 this.securityLevel = securityLevel.trim(); 99 propertyChangeSupport.firePropertyChange("securityLevel", oldSecurityLevel, securityLevel); 100 } 101 102 106 public String getSessionParam() { 107 return this.sessionParam; 108 } 109 110 114 public void setSessionParam(String sessionParam) { 115 if (getSessionParam().equals(sessionParam.trim())) { 116 return; 117 } 118 String oldSessionParam = this.sessionParam; 119 this.sessionParam = sessionParam.trim(); 120 propertyChangeSupport.firePropertyChange("sessionParam", oldSessionParam, sessionParam); 121 } 122 123 public DConfigBean getDConfigBean(DDBeanRoot dDBeanRoot) { 124 return null; 125 } 126 127 } 128 | Popular Tags |