Skip to content

Commit b147f4d

Browse files
committed
Rename package for deployer module
The deployer module package was overloaded with another module, which break standard Java conventions.
1 parent 3c83245 commit b147f4d

File tree

64 files changed

+159
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+159
-119
lines changed

spring-cloud-app-broker-autoconfigure/src/main/java/org/springframework/cloud/appbroker/autoconfigure/AppBrokerAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2828
import org.springframework.boot.context.properties.ConfigurationProperties;
29-
import org.springframework.cloud.appbroker.deployer.AppDeployer;
3029
import org.springframework.cloud.appbroker.deployer.BackingAppDeploymentService;
3130
import org.springframework.cloud.appbroker.deployer.BackingApplication;
3231
import org.springframework.cloud.appbroker.deployer.BackingService;
@@ -37,6 +36,8 @@
3736
import org.springframework.cloud.appbroker.deployer.DefaultBackingServicesProvisionService;
3837
import org.springframework.cloud.appbroker.deployer.DefaultBackingSpaceManagementService;
3938
import org.springframework.cloud.appbroker.deployer.DeployerClient;
39+
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
40+
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
4041
import org.springframework.cloud.appbroker.extensions.parameters.BackingApplicationsParametersTransformationService;
4142
import org.springframework.cloud.appbroker.extensions.parameters.BackingServicesParametersTransformationService;
4243
import org.springframework.cloud.appbroker.extensions.parameters.EnvironmentMappingParametersTransformerFactory;
@@ -47,7 +48,6 @@
4748
import org.springframework.cloud.appbroker.extensions.targets.SpacePerServiceInstance;
4849
import org.springframework.cloud.appbroker.extensions.targets.TargetFactory;
4950
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
50-
import org.springframework.cloud.appbroker.manager.AppManager;
5151
import org.springframework.cloud.appbroker.manager.BackingAppManagementService;
5252
import org.springframework.cloud.appbroker.manager.ManagementClient;
5353
import org.springframework.cloud.appbroker.service.CreateServiceInstanceAppBindingWorkflow;

spring-cloud-app-broker-autoconfigure/src/main/java/org/springframework/cloud/appbroker/autoconfigure/CloudFoundryAppDeployerAutoConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
4444
import org.springframework.boot.context.properties.ConfigurationProperties;
4545
import org.springframework.boot.context.properties.EnableConfigurationProperties;
46-
import org.springframework.cloud.appbroker.deployer.AppDeployer;
4746
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryAppDeployer;
4847
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryAppManager;
4948
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryDeploymentProperties;
5049
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOAuth2Client;
5150
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOperationsUtils;
5251
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryTargetProperties;
53-
import org.springframework.cloud.appbroker.manager.AppManager;
54-
import org.springframework.cloud.appbroker.oauth2.OAuth2Client;
52+
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
53+
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
54+
import org.springframework.cloud.appbroker.deployer.oauth2.OAuth2Client;
5555
import org.springframework.context.annotation.Bean;
5656
import org.springframework.context.annotation.Configuration;
5757
import org.springframework.core.io.ResourceLoader;

spring-cloud-app-broker-autoconfigure/src/test/java/org/springframework/cloud/appbroker/autoconfigure/CloudFoundryAppDeployerAutoConfigurationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929

3030
import org.springframework.boot.autoconfigure.AutoConfigurations;
3131
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
32-
import org.springframework.cloud.appbroker.deployer.AppDeployer;
3332
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryDeploymentProperties;
3433
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryOperationsUtils;
3534
import org.springframework.cloud.appbroker.deployer.cloudfoundry.CloudFoundryTargetProperties;
36-
import org.springframework.cloud.appbroker.manager.AppManager;
37-
import org.springframework.cloud.appbroker.oauth2.OAuth2Client;
35+
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
36+
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
37+
import org.springframework.cloud.appbroker.deployer.oauth2.OAuth2Client;
3838

3939
import static org.assertj.core.api.Assertions.assertThat;
4040

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/deployer/BackingService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.Map;
2424
import java.util.Objects;
2525

26+
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
2627
import org.springframework.util.CollectionUtils;
2728

2829
public class BackingService {

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/deployer/DeployerClient.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@
2222
import reactor.util.Logger;
2323
import reactor.util.Loggers;
2424

25+
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
26+
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceRequest;
27+
import org.springframework.cloud.appbroker.deployer.deployer.CreateServiceInstanceResponse;
28+
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceRequest;
29+
import org.springframework.cloud.appbroker.deployer.deployer.DeleteBackingSpaceResponse;
30+
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceRequest;
31+
import org.springframework.cloud.appbroker.deployer.deployer.DeleteServiceInstanceResponse;
32+
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationRequest;
33+
import org.springframework.cloud.appbroker.deployer.deployer.DeployApplicationResponse;
34+
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationRequest;
35+
import org.springframework.cloud.appbroker.deployer.deployer.UndeployApplicationResponse;
36+
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationRequest;
37+
import org.springframework.cloud.appbroker.deployer.deployer.UpdateApplicationResponse;
38+
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceRequest;
39+
import org.springframework.cloud.appbroker.deployer.deployer.UpdateServiceInstanceResponse;
40+
2541
public class DeployerClient {
2642

2743
private static final Logger LOG = Loggers.getLogger(DeployerClient.class);

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/extensions/targets/SpacePerServiceInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import java.util.Map;
2020

21-
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
21+
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
2222

2323
public class SpacePerServiceInstance extends TargetFactory<SpacePerServiceInstance.Config> {
2424

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/manager/BackingAppManagementService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
import reactor.util.Logger;
2525
import reactor.util.Loggers;
2626

27-
import org.springframework.cloud.appbroker.deployer.AppDeployer;
2827
import org.springframework.cloud.appbroker.deployer.BackingApplication;
2928
import org.springframework.cloud.appbroker.deployer.BackingApplications;
3029
import org.springframework.cloud.appbroker.deployer.BrokeredService;
3130
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
32-
import org.springframework.cloud.appbroker.deployer.GetApplicationRequest;
33-
import org.springframework.cloud.appbroker.deployer.GetServiceInstanceRequest;
3431
import org.springframework.cloud.appbroker.deployer.ServicesSpec;
32+
import org.springframework.cloud.appbroker.deployer.deployer.AppDeployer;
33+
import org.springframework.cloud.appbroker.deployer.deployer.GetApplicationRequest;
34+
import org.springframework.cloud.appbroker.deployer.deployer.GetServiceInstanceRequest;
3535
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
3636

3737
public class BackingAppManagementService {

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/manager/ManagementClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
import reactor.util.Loggers;
2222

2323
import org.springframework.cloud.appbroker.deployer.BackingApplication;
24+
import org.springframework.cloud.appbroker.deployer.manager.AppManager;
25+
import org.springframework.cloud.appbroker.deployer.manager.RestageApplicationRequest;
26+
import org.springframework.cloud.appbroker.deployer.manager.RestartApplicationRequest;
27+
import org.springframework.cloud.appbroker.deployer.manager.StartApplicationRequest;
28+
import org.springframework.cloud.appbroker.deployer.manager.StopApplicationRequest;
2429

2530
public class ManagementClient {
2631

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/workflow/instance/AppDeploymentDeleteServiceInstanceWorkflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.springframework.cloud.appbroker.deployer.BackingServicesProvisionService;
3232
import org.springframework.cloud.appbroker.deployer.BackingSpaceManagementService;
3333
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
34-
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
34+
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
3535
import org.springframework.cloud.appbroker.extensions.targets.TargetService;
3636
import org.springframework.cloud.appbroker.manager.BackingAppManagementService;
3737
import org.springframework.cloud.appbroker.service.DeleteServiceInstanceWorkflow;

spring-cloud-app-broker-core/src/main/java/org/springframework/cloud/appbroker/workflow/instance/AppDeploymentUpdateServiceInstanceWorkflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.springframework.cloud.appbroker.deployer.BackingService;
3636
import org.springframework.cloud.appbroker.deployer.BackingServicesProvisionService;
3737
import org.springframework.cloud.appbroker.deployer.BrokeredServices;
38-
import org.springframework.cloud.appbroker.deployer.DeploymentProperties;
38+
import org.springframework.cloud.appbroker.deployer.deployer.DeploymentProperties;
3939
import org.springframework.cloud.appbroker.extensions.parameters.BackingApplicationsParametersTransformationService;
4040
import org.springframework.cloud.appbroker.extensions.parameters.BackingServicesParametersTransformationService;
4141
import org.springframework.cloud.appbroker.extensions.targets.TargetService;

0 commit comments

Comments
 (0)