Package com.tuenti.supernanny

Source Code of com.tuenti.supernanny.SuperNanny

/**
* SuperNanny cli entrypoint.
*
* @package Build
* @subpackage Dependencies
* @author Goran Petrovic <gpetrovic@tuenti.com>
*/
package com.tuenti.supernanny;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.tuenti.supernanny.cli.SuperNannyApp;
import com.tuenti.supernanny.di.SuperNannyModule;

/**
* Entry point for SuperNanny cli environment.
*
* @author Goran Petrovic <gpetrovic@tuenti.com>
*/
public class SuperNanny {
  /**
   * SuperNanny command-line entry point.
   *
   * Handles command-line arguments and actions.
   *
   * @param args
   *            arguments.
   */
  public static void main(String[] args) {
    /*
     * Initialize dependency injection.
     */
    Injector injector = Guice.createInjector(new SuperNannyModule());

    /*
     * Configure the logger.
     */
    Logger.getLogger("").setLevel(Level.OFF);

    /*
     * Run SuperNanny.
     */
    injector.getInstance(SuperNannyApp.class).babysit(args);
  }
TOP

Related Classes of com.tuenti.supernanny.SuperNanny

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.