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

uk.co.codera.ci.tooling.application.CiToolingApplication Maven / Gradle / Ivy

Go to download

Reponsible for wiring together the DropWizard configuration and application. Builds the runnable jar.

There is a newer version: 0.2.4
Show newest version
package uk.co.codera.ci.tooling.application;

import io.dropwizard.Application;
import io.dropwizard.setup.Environment;
import uk.co.codera.ci.tooling.scm.ScmEventBroadcaster;
import uk.co.codera.ci.tooling.scm.ScmEventListener;

public class CiToolingApplication extends Application {

    public static void main(String[] args) throws Exception {
        new CiToolingApplication().run(args);
    }

    @Override
    public void run(CiToolingConfiguration configuration, Environment environment) throws Exception {
        ScmEventListener scmEventBroadcaster = scmEventBroadcaster(configuration);
        ResourceConfigurer.configure(environment.jersey(), configuration, scmEventBroadcaster);
    }

    private ScmEventListener scmEventBroadcaster(CiToolingConfiguration configuration) {
        ScmEventBroadcaster scmEventBroadcaster = new ScmEventBroadcaster();
        ScmEventBroadcasterConfigurer.configure(scmEventBroadcaster, configuration);
        return scmEventBroadcaster;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy