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

kikaha.core.cdi.ApplicationRunner Maven / Gradle / Ivy

package kikaha.core.cdi;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ApplicationRunner {

	final ServiceProvider provider = new DefaultServiceProvider();
	Application application = provider.load( Application.class );

	public void run() throws Exception {
		application.run();
	}

	public static void main( String[] args ) throws Exception {
		final long start = System.currentTimeMillis();
		new ApplicationRunner().run();
		final long elapsed = System.currentTimeMillis() - start;
		log.info("Application started in " + elapsed + "ms.");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy