1 28 package org.objectweb.jonas.management; 29 30 import java.util.Properties ; 31 32 35 public class ReconfiguredProp implements Reconfigured { 36 String propName; 37 String propValue; 38 Properties props; 39 40 45 boolean replace; 46 49 boolean add; 50 51 public ReconfiguredProp(String propName, String propValue, boolean replace) { 52 this.propName = propName; 53 this.propValue = propValue; 54 this.replace = replace; 55 } 56 57 public ReconfiguredProp(String propName, String propValue) { 58 this(propName, propValue, true); 59 } 60 61 public String getPropName() { 62 return propName; 63 } 64 65 public String getPropValue() { 66 return propValue; 67 } 68 69 public void setProps(Properties props) { 70 this.props = props; 71 } 72 73 public Properties getProps() { 74 return props; 75 } 76 77 public boolean replaceProp() { 78 return replace; 79 } 80 81 public void setAdd(boolean add) { 82 this.add = add; 83 } 84 85 public boolean addProp() { 86 return add; 87 } 88 } 89 | Popular Tags |