00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 package org.objectweb.jonas.management;
00029
00030 import java.util.Properties;
00031
00035 public class ReconfiguredProp implements Reconfigured {
00036 String propName;
00037 String propValue;
00038 Properties props;
00039
00045 boolean replace;
00049 boolean add;
00050
00051 public ReconfiguredProp(String propName, String propValue, boolean replace) {
00052 this.propName = propName;
00053 this.propValue = propValue;
00054 this.replace = replace;
00055 }
00056
00057 public ReconfiguredProp(String propName, String propValue) {
00058 this(propName, propValue, true);
00059 }
00060
00061 public String getPropName() {
00062 return propName;
00063 }
00064
00065 public String getPropValue() {
00066 return propValue;
00067 }
00068
00069 public void setProps(Properties props) {
00070 this.props = props;
00071 }
00072
00073 public Properties getProps() {
00074 return props;
00075 }
00076
00077 public boolean replaceProp() {
00078 return replace;
00079 }
00080
00081 public void setAdd(boolean add) {
00082 this.add = add;
00083 }
00084
00085 public boolean addProp() {
00086 return add;
00087 }
00088 }