uk.co.codera.ci.tooling.application.CiToolingApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codera-ci-tooling-application Show documentation
Show all versions of codera-ci-tooling-application Show documentation
Reponsible for wiring together the DropWizard configuration and application. Builds the runnable jar.
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