All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.schoellerfamily.gedbrowser.api.Application Maven / Gradle / Ivy

There is a newer version: 1.3.0-RC2
Show newest version
package org.schoellerfamily.gedbrowser.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Dick Schoeller
 */
@ComponentScan(basePackages = { "org.schoellerfamily.gedbrowser.api",
        "org.schoellerfamily.gedbrowser.security" })
@EnableAutoConfiguration
public class Application {
    /** Sleep during shutdown to let everything finish. */
    private static final int TWENTY_SECONDS = 20000;

    /**
     * Allow us to run gedbrowser as a standalone application with an embedded
     * application server.
     *
     * @param args command line arguments
     * @throws InterruptedException if thread sleep fails at end
     */
    public static void main(final String[] args) throws InterruptedException {
        SpringApplication.run(Application.class, args);
        Thread.sleep(TWENTY_SECONDS);
    }

    /**
     * @return the application name.
     */
    public final String getApplicationName() {
        return "gedbrowserng";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy