Class AppBrokerAutoConfiguration
java.lang.Object
org.springframework.cloud.appbroker.autoconfigure.AppBrokerAutoConfiguration
@Configuration
@AutoConfigureAfter(CloudFoundryAppDeployerAutoConfiguration.class)
@ConditionalOnBean(AppDeployer.class)
public class AppBrokerAutoConfiguration
extends Object
App Broker Auto-configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappDeploymentCreateServiceInstanceWorkflow
(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, TargetService targetService, BackingServicesProvisionService backingServicesProvisionService) Provide aCreateServiceInstanceWorkflow
beanappDeploymentDeleteServiceInstanceWorkflow
(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, BackingSpaceManagementService backingSpaceManagementService, TargetService targetService) Provide aDeleteServiceInstanceWorkflow
beanappDeploymentUpdateServiceInstanceWorkflow
(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, TargetService targetService) Provide aUpdateServiceInstanceWorkflow
beanbackingAppDeploymentService
(DeployerClient deployerClient) Provide aBackingAppDeploymentService
beanbackingApplicationsParametersTransformationService
(List<ParametersTransformerFactory<BackingApplication, ?>> transformers) Provide aBackingApplicationsParametersTransformationService
beanbackingAppManagementService
(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService) Provide aBackingAppManagementService
beanbackingServicesParametersTransformationService
(List<ParametersTransformerFactory<BackingService, ?>> transformers) Provide aBackingServicesParametersTransformationService
beanbackingServicesProvisionService
(DeployerClient deployerClient) Provide aBackingServicesProvisionService
beanbackingSpaceProvisionService
(DeployerClient deployerClient) Provide aBackingSpaceManagementService
beanProvide aBrokeredServices
beandeployerClient
(AppDeployer appDeployer) Provide aDeployerClient
beanProvide anEnvironmentMappingParametersTransformerFactory
beanmanagementClient
(AppManager appManager) Provide aManagementClient
beanProvide aParameterMappingParametersTransformerFactory
beanProvide aParameterMappingParametersTransformerFactory
beanserviceInstanceBindingService
(ServiceInstanceBindingStateRepository stateRepository, List<CreateServiceInstanceAppBindingWorkflow> createServiceInstanceAppBindingWorkflows, List<CreateServiceInstanceRouteBindingWorkflow> createServiceInstanceRouteBindingWorkflows, List<DeleteServiceInstanceBindingWorkflow> deleteServiceInstanceBindingWorkflows) Provide aWorkflowServiceInstanceBindingService
beanProvide aServiceInstanceBindingStateRepository
beanProvide aServiceInstanceGuidSuffix
beanserviceInstanceService
(ServiceInstanceStateRepository stateRepository, List<CreateServiceInstanceWorkflow> createWorkflows, List<DeleteServiceInstanceWorkflow> deleteWorkflows, List<UpdateServiceInstanceWorkflow> updateWorkflows) Provide aWorkflowServiceInstanceService
beanProvide aServiceInstanceStateRepository
beanProvide aSpacePerServiceInstance
beantargetService
(List<TargetFactory<?>> targets) Provide aTargetService
bean
-
Constructor Details
-
AppBrokerAutoConfiguration
public AppBrokerAutoConfiguration()
-
-
Method Details
-
deployerClient
Provide aDeployerClient
bean- Parameters:
appDeployer
- the AppDeployer bean- Returns:
- the bean
-
backingAppDeploymentService
@Bean @ConditionalOnMissingBean public BackingAppDeploymentService backingAppDeploymentService(DeployerClient deployerClient) Provide aBackingAppDeploymentService
bean- Parameters:
deployerClient
- the DeployerClient bean- Returns:
- the bean
-
managementClient
Provide aManagementClient
bean- Parameters:
appManager
- the AppManager bean- Returns:
- the bean
-
backingAppManagementService
@Bean public BackingAppManagementService backingAppManagementService(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService) Provide aBackingAppManagementService
bean- Parameters:
managementClient
- the ManagementClient beanappDeployer
- the AppDeployer beanbrokeredServices
- the BrokeredServices beantargetService
- the TargetService bean- Returns:
- the bean
-
brokeredServices
@Bean @ConfigurationProperties("spring.cloud.appbroker.services") @ConditionalOnMissingBean public BrokeredServices brokeredServices()Provide aBrokeredServices
bean- Returns:
- the bean
-
serviceInstanceStateRepository
@Bean @ConditionalOnMissingBean(ServiceInstanceStateRepository.class) public ServiceInstanceStateRepository serviceInstanceStateRepository()Provide aServiceInstanceStateRepository
bean- Returns:
- the bean
-
serviceInstanceBindingStateRepository
@Bean @ConditionalOnMissingBean(ServiceInstanceBindingStateRepository.class) public ServiceInstanceBindingStateRepository serviceInstanceBindingStateRepository()Provide aServiceInstanceBindingStateRepository
bean- Returns:
- the bean
-
environmentMappingParametersTransformerFactory
@Bean public EnvironmentMappingParametersTransformerFactory environmentMappingParametersTransformerFactory()Provide anEnvironmentMappingParametersTransformerFactory
bean- Returns:
- the bean
-
propertyMappingParametersTransformerFactory
@Bean public PropertyMappingParametersTransformerFactory propertyMappingParametersTransformerFactory()Provide aParameterMappingParametersTransformerFactory
bean- Returns:
- the bean
-
parameterMappingParametersTransformerFactory
@Bean public ParameterMappingParametersTransformerFactory parameterMappingParametersTransformerFactory()Provide aParameterMappingParametersTransformerFactory
bean- Returns:
- the bean
-
backingApplicationsParametersTransformationService
@Bean public BackingApplicationsParametersTransformationService backingApplicationsParametersTransformationService(List<ParametersTransformerFactory<BackingApplication, ?>> transformers) Provide aBackingApplicationsParametersTransformationService
bean- Parameters:
transformers
- a collection of parameter transformers- Returns:
- the bean
-
backingServicesParametersTransformationService
@Bean public BackingServicesParametersTransformationService backingServicesParametersTransformationService(List<ParametersTransformerFactory<BackingService, ?>> transformers) Provide aBackingServicesParametersTransformationService
bean- Parameters:
transformers
- a collection of parameter transformers- Returns:
- the bean
-
spacePerServiceInstance
Provide aSpacePerServiceInstance
bean- Returns:
- the bean
-
serviceInstanceGuidSuffix
Provide aServiceInstanceGuidSuffix
bean- Returns:
- the bean
-
targetService
Provide aTargetService
bean- Parameters:
targets
- a collection of targets- Returns:
- the bean
-
backingServicesProvisionService
@Bean @ConditionalOnMissingBean public BackingServicesProvisionService backingServicesProvisionService(DeployerClient deployerClient) Provide aBackingServicesProvisionService
bean- Parameters:
deployerClient
- the DeployerClient bean- Returns:
- the bean
-
backingSpaceProvisionService
@Bean @ConditionalOnMissingBean public BackingSpaceManagementService backingSpaceProvisionService(DeployerClient deployerClient) Provide aBackingSpaceManagementService
bean- Parameters:
deployerClient
- the DeployerClient bean- Returns:
- the bean
-
appDeploymentCreateServiceInstanceWorkflow
@Bean public CreateServiceInstanceWorkflow appDeploymentCreateServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, TargetService targetService, BackingServicesProvisionService backingServicesProvisionService) Provide aCreateServiceInstanceWorkflow
bean- Parameters:
brokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanappsParametersTransformationService
- the BackingApplicationsParametersTransformationService beanservicesParametersTransformationService
- the BackingServicesParametersTransformationService beantargetService
- the TargetService beanbackingServicesProvisionService
- the BackingServicesProvisionService bean- Returns:
- the bean
-
appDeploymentUpdateServiceInstanceWorkflow
@Bean public UpdateServiceInstanceWorkflow appDeploymentUpdateServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, TargetService targetService) Provide aUpdateServiceInstanceWorkflow
bean- Parameters:
brokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanbackingAppManagementService
- the BackingAppManagementService beanbackingServicesProvisionService
- the BackingServicesProvisionService beanappsParametersTransformationService
- the BackingApplicationsParametersTransformationService beanservicesParametersTransformationService
- the BackingServicesParametersTransformationService beantargetService
- the TargetService bean- Returns:
- the bean
-
appDeploymentDeleteServiceInstanceWorkflow
@Bean public DeleteServiceInstanceWorkflow appDeploymentDeleteServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, BackingSpaceManagementService backingSpaceManagementService, TargetService targetService) Provide aDeleteServiceInstanceWorkflow
bean- Parameters:
brokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanbackingAppManagementService
- the BackingAppManagementService beanbackingServicesProvisionService
- the BackingServicesProvisionService beantargetService
- the TargetService bean- Returns:
- the bean
-
serviceInstanceService
@Bean @ConditionalOnMissingBean(org.springframework.cloud.servicebroker.service.ServiceInstanceService.class) public WorkflowServiceInstanceService serviceInstanceService(ServiceInstanceStateRepository stateRepository, List<CreateServiceInstanceWorkflow> createWorkflows, List<DeleteServiceInstanceWorkflow> deleteWorkflows, List<UpdateServiceInstanceWorkflow> updateWorkflows) Provide aWorkflowServiceInstanceService
bean- Parameters:
stateRepository
- the ServiceInstanceStateRepository beancreateWorkflows
- a collection of create workflowsdeleteWorkflows
- a collection of delete workflowsupdateWorkflows
- a collection of update workflows- Returns:
- the bean
-
serviceInstanceBindingService
@Bean @ConditionalOnMissingBean(org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService.class) public WorkflowServiceInstanceBindingService serviceInstanceBindingService(ServiceInstanceBindingStateRepository stateRepository, @Autowired(required=false) List<CreateServiceInstanceAppBindingWorkflow> createServiceInstanceAppBindingWorkflows, @Autowired(required=false) List<CreateServiceInstanceRouteBindingWorkflow> createServiceInstanceRouteBindingWorkflows, @Autowired(required=false) List<DeleteServiceInstanceBindingWorkflow> deleteServiceInstanceBindingWorkflows) Provide aWorkflowServiceInstanceBindingService
bean- Parameters:
stateRepository
- the ServiceInstanceBindingStateRepository beancreateServiceInstanceAppBindingWorkflows
- a collection of create app binding workflowscreateServiceInstanceRouteBindingWorkflows
- a collection of create route binding workflowsdeleteServiceInstanceBindingWorkflows
- a collection of update workflows- Returns:
- the bean
-