Package picture

Source Code of picture.Main

package picture;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import meganetpo.picturehandler.PictureHandler;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

/**
* @company PSTU http://www.pstu.edu
* @author Burtovoy Semen
* @version
*/
public class Main {

    public static PropertiesConfiguration config;
    public static MainFormThread mainF = null;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ConfigurationException {
 
  String resource = "log.conf";
  org.apache.log4j.PropertyConfigurator.configure(resource);
  config = new PropertiesConfiguration("application.properties");
  ExecutorService exec = Executors.newCachedThreadPool();
  PictureHandler ph = new PictureHandler();
  mainF = new MainFormThread();
  exec.execute(mainF);
  exec.execute(ph);
  mainF.setPictureHandler(ph);
  exec.shutdown();
    }
}
TOP

Related Classes of picture.Main

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.