1 5 package org.exoplatform.container.configuration; 6 7 import java.util.* ; 8 14 public class ServiceConfiguration extends HashMap { 15 private String key ; 16 private String type ; 17 18 public ServiceConfiguration() { 19 } 20 21 public String getServiceKey() { return key ; } 22 public void setServiceKey(String s) { key = s ; } 23 24 public String getServiceType() { return type ; } 25 public void setServiceType(String s) { type = s ; } 26 27 public ValuesParam getValuesParam(String name) { 28 return (ValuesParam) get(name) ; 29 } 30 31 public ValueParam getValueParam(String name) { 32 return (ValueParam) get(name) ; 33 } 34 35 public PropertiesParam getPropertiesParam(String name) { 36 return (PropertiesParam) get(name) ; 37 } 38 39 public ObjectParam getObjectParam(String name) { 40 return (ObjectParam) get(name) ; 41 } 42 43 public Parameter getParameter(String name) { 44 return (Parameter) get(name) ; 45 } 46 47 public void addParameter(Parameter param) { 48 put(param.getName(), param) ; 49 } 50 51 public Parameter removeParameter(String name) { 52 return (Parameter) remove(name) ; 53 } 54 } | Popular Tags |