Package org.vietspider.common.io

Examples of org.vietspider.common.io.PropertiesFile


    if(properties == null) return;
    properties.put(key, value);
  }
 
  public synchronized void store() {
    PropertiesFile file = new PropertiesFile(true);
    try {
      file.save(UtilFile.getFile("client", "config.properties"), properties);
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
  }
View Full Code Here


      LogService.getInstance().setThrowable(e);
    }
  }
 
  public synchronized void load() {
    PropertiesFile file = new PropertiesFile(true);
    try {
      properties = file.load(UtilFile.getFile("client", "config.properties"));
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
  }
View Full Code Here

* Jul 16, 2008 
*/
public class ClientRM extends ResourceManager2 {
 
  public ClientRM(String name) {
    PropertiesFile file = new PropertiesFile(true);
    Properties properties = new Properties();
    try {
      properties = file.load(UtilFile.getFile("client", "config.properties"));
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
    try {
      loadResources(ApplicationFactory.class, properties, name, true);
View Full Code Here

TOP

Related Classes of org.vietspider.common.io.PropertiesFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.