Package org.vietspider.ui.services

Source Code of org.vietspider.ui.services.ClientRM

/***************************************************************************
* Copyright 2001-2008 The VietSpider         All rights reserved.       *
**************************************************************************/
package org.vietspider.ui.services;

import java.util.Properties;

import org.vietspider.common.io.LogService;
import org.vietspider.common.io.PropertiesFile;
import org.vietspider.common.io.ResourceManager2;
import org.vietspider.common.io.UtilFile;
import org.vietspider.ui.widget.ApplicationFactory;


/**
* Author : Nhu Dinh Thuan
*          nhudinhthuan@yahoo.com
* 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);
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
  }

}
TOP

Related Classes of org.vietspider.ui.services.ClientRM

TOP
Copyright © 2018 www.massapi.com. 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.