be.functor.cycloscan.CycloScan.java Source code

Java tutorial

Introduction

Here is the source code for be.functor.cycloscan.CycloScan.java

Source

/*
 *  This file is part of CycloScan.
 *
 *  CycloScan is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  CycloScan is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */
package be.functor.cycloscan;

import java.util.concurrent.TimeUnit;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.google.common.util.concurrent.Uninterruptibles;

/**
 * Main.
 *
 * @author Kenny Moens
 */
public class CycloScan {

    public static void main(final String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("context/application-context.xml");

        while (true) {
            Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS);
        }
    }

}