1 18 19 package org.apache.jmeter.ejb.jndi.config; 20 21 import java.io.Serializable ; 22 23 import org.apache.jmeter.config.AbstractConfigElement; 24 import org.apache.jmeter.config.ConfigElement; 25 import org.apache.jmeter.ejb.jndi.config.gui.LookupConfigGui; 26 import org.apache.jmeter.util.JMeterUtils; 27 import org.apache.log4j.Category; 28 29 36 public class LookupConfig extends AbstractConfigElement implements Serializable 37 { 38 private static Category catClass = Category.getInstance( 39 LookupConfig.class.getName()); 40 41 protected static final String LOOKUP_NAME = "lookup_name"; 42 43 public LookupConfig() 44 { 45 } 46 47 public Class getGuiClass() 48 { 49 return org.apache.jmeter.ejb.jndi.config.gui.LookupConfigGui.class; 50 } 51 52 public Object clone() 53 { 54 LookupConfig newConfig = new LookupConfig(); 55 configureClone(newConfig); 56 return newConfig; 57 } 58 59 public String getLookupName() 60 { 61 String string = (String )this.getProperty(LOOKUP_NAME); 62 if(catClass.isDebugEnabled()) 63 { 64 catClass.debug("getLookupName1 : lookup name - " + string); 65 } 66 return string; 67 } 68 69 public void setLookupName(String string) 70 { 71 if(catClass.isDebugEnabled()) 72 { 73 catClass.debug("setLookupName1 : lookup name - " + string); 74 } 75 this.putProperty(LOOKUP_NAME, string); 76 } 77 78 public String getClassLabel() 79 { 80 return JMeterUtils.getResString("jndi_lookup_title"); 81 } 82 83 public void addConfigElement(ConfigElement config) 84 { 85 } 86 } 87 | Popular Tags |