Пример #1
0
 public boolean setProperties(Map<String, Object> properties) {
   boolean modified = false;
   for (String s : properties.keySet()) {
     if (props.hasProperty(s)) {
       if (props.getProperty(s) != properties.get(s)) modified = true;
     } else modified = true;
   }
   if (modified) props = new DynamicPropertiesContainer(properties);
   return modified;
 }
Пример #2
0
 public Map<String, Object> getProperties() {
   return props.asMap();
 }
Пример #3
0
 public Object getProperty(String key) {
   return personalProperties.getProperty(key);
 }
Пример #4
0
 public Object getProperty(String name) {
   return props.getProperty(name);
 }
Пример #5
0
 public void setProperty(String key, Object value) {
   personalProperties.setProperty(key, value);
 }