uk.co.codera.ci.tooling.application.BitBucketResourceFactory 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.bitbucket.BitBucketResource;
import uk.co.codera.ci.tooling.api.bitbucket.PushEventDtoAdapter;
import uk.co.codera.ci.tooling.git.GitEventListener;
public class BitBucketResourceFactory {
public static BitBucketResource create(BitBucketConfiguration configuration, GitEventListener gitEventBroadcaster) {
PushEventDtoAdapter gitPushEventAdapter = new PushEventDtoAdapter(configuration.getBitBucketServerName(), configuration.getBitBucketServerPort());
return new BitBucketResource(gitPushEventAdapter, gitEventBroadcaster);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy