Skip to content

Commit

Permalink
reduce internal dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Aug 7, 2021
1 parent 721a816 commit 2912b13
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class DockerClientImpl implements DockerClient {
this.queryUtil = new QueryUtil()

this.manageSystem = new ManageSystemClient(httpClient, responseHandler)
this.manageAuthentication = new ManageAuthenticationClient(env, httpClient, responseHandler, manageSystem)
this.manageAuthentication = new ManageAuthenticationClient(env, httpClient, manageSystem)
this.manageImage = new ManageImageClient(httpClient, responseHandler, manageAuthentication)
this.manageDistribution = new ManageDistributionService(httpClient, responseHandler)
this.manageContainer = new ManageContainerClient(httpClient, responseHandler, manageImage)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package de.gesellix.docker.client.authentication

import com.squareup.moshi.Moshi
import de.gesellix.docker.client.DockerResponseHandler
import de.gesellix.docker.client.distribution.ReferenceParser
import de.gesellix.docker.client.registry.RegistryElection
import de.gesellix.docker.client.system.ManageSystem
Expand All @@ -18,18 +17,15 @@ class ManageAuthenticationClient implements ManageAuthentication {

private DockerEnv env
private EngineClient client
private DockerResponseHandler responseHandler
private RegistryElection registryElection

private Moshi moshi = new Moshi.Builder().build()

ManageAuthenticationClient(DockerEnv env,
EngineClient client,
DockerResponseHandler responseHandler,
ManageSystem manageSystem) {
this.env = env
this.client = client
this.responseHandler = responseHandler
this.registryElection = new RegistryElection(manageSystem, this)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package de.gesellix.docker.client.authentication
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import de.gesellix.docker.client.DockerClient
import de.gesellix.docker.client.DockerResponseHandler
import de.gesellix.docker.client.system.ManageSystem
import de.gesellix.docker.engine.DockerEnv
import de.gesellix.docker.engine.EngineClient
Expand All @@ -29,7 +28,6 @@ class ManageAuthenticationClientTest extends Specification {
service = Spy(ManageAuthenticationClient, constructorArgs: [
env,
client,
Mock(DockerResponseHandler),
Mock(ManageSystem)])
}

Expand Down

0 comments on commit 2912b13

Please sign in to comment.