Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update DockerClientBuilder.java
Added method to allow changing the ClassPath used by ServiceLoader.
  • Loading branch information
Robert Szymczak committed Nov 12, 2014
commit df7294a86bbeaea3f4a6d33b7ca46c220e9a0971
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ public DockerClientBuilder withDockerCmdExecFactory(
this.dockerCmdExecFactory = dockerCmdExecFactory;
return this;
}

public DockerClientBuilder withServiceLoaderClassPath(ClassPath classPath)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code does not compile. Should probably be ClassLoader.

{
serviceLoader = ServiceLoader.load(DockerCmdExecFactory.class, classPath);
return this;
}

public DockerClient build() {
if(dockerCmdExecFactory != null) {
Expand Down