예제 #1
0
파일: ConfigHelper.java 프로젝트: andsp/oou
 public void save(Instance instance) {
   if (instance.isNew()) {
     String key = this.generateKey();
     instance.setId(key);
     getInstances().put(key, instance);
   } else {
     getInstances().put(instance.getId(), instance);
   }
   saveConfig();
 }
예제 #2
0
파일: ConfigHelper.java 프로젝트: andsp/oou
 public void remove(Instance instance) {
   getInstances().remove(instance.getId());
   saveConfig();
 }