uk.co.codera.ci.tooling.application.SvnResourceFactory 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 uk.co.codera.ci.tooling.api.svn.SvnEventDtoAdapter;
import uk.co.codera.ci.tooling.api.svn.SvnResource;
import uk.co.codera.ci.tooling.scm.ScmEventListener;
public class SvnResourceFactory {
public static SvnResource create(SvnConfiguration configuration, ScmEventListener scmEventListener) {
return new SvnResource(eventAdapter(configuration), scmEventListener);
}
private static SvnEventDtoAdapter eventAdapter(SvnConfiguration configuration) {
return new SvnEventDtoAdapter(configuration.getHost(), configuration.getPort());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy