1 23 24 29 30 package com.sun.enterprise.tools.common.deploy; 31 32 import java.beans.*; 33 import java.util.List ; 34 import com.sun.enterprise.tools.common.util.diagnostics.Reporter; 35 36 public class JmsResource extends BaseResource { 37 38 private NameValuePair[] extParams = new NameValuePair[0]; 39 40 public JmsResource(List resources) { 41 super(resources, "JmsResource"); JndiName = "jms/jndiname"; setResType("javax.jms.Queue"); } 45 46 public NameValuePair[] getExtParams() { 47 return extParams; 48 } 49 50 public void setExtParams(Object [] value) { 51 Reporter.info(new Integer (value.length)); NameValuePair[] pairs = new NameValuePair[value.length]; 53 for (int i = 0; i < value.length; i++) { 54 NameValuePair val = (NameValuePair)value[i]; 55 NameValuePair pair = new NameValuePair(); 56 pair.setParamName(val.getParamName()); 57 pair.setParamValue(val.getParamValue()); 58 pair.setParamDescription(val.getParamDescription()); 59 Reporter.info(pair.getParamName() + " " + pair.getParamValue()); pairs[i] = pair; 61 } 62 NameValuePair[] oldValue = extParams; 63 this.extParams = pairs; 64 initPropertyChangeSupport(); 65 propertySupport.firePropertyChange ("extParams", oldValue, extParams); } 67 } 68 | Popular Tags |