@Configuration @AutoConfigureAfter(value=CloudFoundryAppDeployerAutoConfiguration.class) @ConditionalOnBean(value=AppDeployer.class) public class AppBrokerAutoConfiguration extends Object
Constructor and Description |
---|
AppBrokerAutoConfiguration() |
@Bean public DeployerClient deployerClient(AppDeployer appDeployer)
DeployerClient
beanappDeployer
- the AppDeployer bean@Bean @ConditionalOnMissingBean public BackingAppDeploymentService backingAppDeploymentService(DeployerClient deployerClient)
BackingAppDeploymentService
beandeployerClient
- the DeployerClient bean@Bean public ManagementClient managementClient(AppManager appManager)
ManagementClient
beanappManager
- the AppManager bean@Bean public BackingAppManagementService backingAppManagementService(ManagementClient managementClient, AppDeployer appDeployer, BrokeredServices brokeredServices, TargetService targetService)
BackingAppManagementService
beanmanagementClient
- the ManagementClient beanappDeployer
- the AppDeployer beanbrokeredServices
- the BrokeredServices beantargetService
- the TargetService bean@Bean @ConfigurationProperties(value="spring.cloud.appbroker.services") @ConditionalOnMissingBean public BrokeredServices brokeredServices()
BrokeredServices
bean@Bean @ConditionalOnMissingBean(value=ServiceInstanceStateRepository.class) public ServiceInstanceStateRepository serviceInstanceStateRepository()
ServiceInstanceStateRepository
bean@Bean @ConditionalOnMissingBean(value=ServiceInstanceBindingStateRepository.class) public ServiceInstanceBindingStateRepository serviceInstanceBindingStateRepository()
ServiceInstanceBindingStateRepository
bean@Bean public EnvironmentMappingParametersTransformerFactory environmentMappingParametersTransformerFactory()
EnvironmentMappingParametersTransformerFactory
bean@Bean public PropertyMappingParametersTransformerFactory propertyMappingParametersTransformerFactory()
ParameterMappingParametersTransformerFactory
bean@Bean public ParameterMappingParametersTransformerFactory parameterMappingParametersTransformerFactory()
ParameterMappingParametersTransformerFactory
bean@Bean public BackingApplicationsParametersTransformationService backingApplicationsParametersTransformationService(List<ParametersTransformerFactory<BackingApplication,?>> transformers)
BackingApplicationsParametersTransformationService
beantransformers
- a collection of parameter transformers@Bean public BackingServicesParametersTransformationService backingServicesParametersTransformationService(List<ParametersTransformerFactory<BackingService,?>> transformers)
BackingServicesParametersTransformationService
beantransformers
- a collection of parameter transformers@ConditionalOnMissingBean(value=CredentialGenerator.class) @Bean public SimpleCredentialGenerator simpleCredentialGenerator()
SimpleCredentialGenerator
bean@Bean public SpringSecurityBasicAuthCredentialProviderFactory springSecurityBasicAuthCredentialProvider(CredentialGenerator credentialGenerator)
SpringSecurityBasicAuthCredentialProviderFactory
beancredentialGenerator
- the CredentialGenerator bean@Bean public SpringSecurityOAuth2CredentialProviderFactory springSecurityOAuth2CredentialProvider(CredentialGenerator credentialGenerator, OAuth2Client oAuth2Client)
SpringSecurityOAuth2CredentialProviderFactory
beancredentialGenerator
- the CredentialGenerator beanoAuth2Client
- the OAuth2Client bean@Bean public CredentialProviderService credentialProviderService(List<CredentialProviderFactory<?>> providers)
CredentialProviderService
beanproviders
- a collection of credential providers@Bean public SpacePerServiceInstance spacePerServiceInstance()
SpacePerServiceInstance
bean@Bean public ServiceInstanceGuidSuffix serviceInstanceGuidSuffix()
ServiceInstanceGuidSuffix
bean@Bean public TargetService targetService(List<TargetFactory<?>> targets)
TargetService
beantargets
- a collection of targets@Bean @ConditionalOnMissingBean public BackingServicesProvisionService backingServicesProvisionService(DeployerClient deployerClient)
BackingServicesProvisionService
beandeployerClient
- the DeployerClient bean@Bean public CreateServiceInstanceWorkflow appDeploymentCreateServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, CredentialProviderService credentialProviderService, TargetService targetService, BackingServicesProvisionService backingServicesProvisionService)
CreateServiceInstanceWorkflow
beanbrokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanappsParametersTransformationService
- the BackingApplicationsParametersTransformationService beanservicesParametersTransformationService
- the BackingServicesParametersTransformationService beancredentialProviderService
- the CredentialProviderService beantargetService
- the TargetService beanbackingServicesProvisionService
- the BackingServicesProvisionService bean@Bean public UpdateServiceInstanceWorkflow appDeploymentUpdateServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, BackingApplicationsParametersTransformationService appsParametersTransformationService, BackingServicesParametersTransformationService servicesParametersTransformationService, TargetService targetService)
UpdateServiceInstanceWorkflow
beanbrokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanbackingAppManagementService
- the BackingAppManagementService beanbackingServicesProvisionService
- the BackingServicesProvisionService beanappsParametersTransformationService
- the BackingApplicationsParametersTransformationService beanservicesParametersTransformationService
- the BackingServicesParametersTransformationService beantargetService
- the TargetService bean@Bean public DeleteServiceInstanceWorkflow appDeploymentDeleteServiceInstanceWorkflow(BrokeredServices brokeredServices, BackingAppDeploymentService backingAppDeploymentService, BackingAppManagementService backingAppManagementService, BackingServicesProvisionService backingServicesProvisionService, CredentialProviderService credentialProviderService, TargetService targetService)
DeleteServiceInstanceWorkflow
beanbrokeredServices
- the BrokeredServices beanbackingAppDeploymentService
- the BackingAppDeploymentService beanbackingAppManagementService
- the BackingAppManagementService beanbackingServicesProvisionService
- the BackingServicesProvisionService beancredentialProviderService
- the CredentialProviderService beantargetService
- the TargetService bean@Bean @ConditionalOnMissingBean(value=org.springframework.cloud.servicebroker.service.ServiceInstanceService.class) public WorkflowServiceInstanceService serviceInstanceService(ServiceInstanceStateRepository stateRepository, List<CreateServiceInstanceWorkflow> createWorkflows, List<DeleteServiceInstanceWorkflow> deleteWorkflows, List<UpdateServiceInstanceWorkflow> updateWorkflows)
WorkflowServiceInstanceService
beanstateRepository
- the ServiceInstanceStateRepository beancreateWorkflows
- a collection of create workflowsdeleteWorkflows
- a collection of delete workflowsupdateWorkflows
- a collection of update workflows@Bean @ConditionalOnMissingBean(value=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)
WorkflowServiceInstanceBindingService
beanstateRepository
- the ServiceInstanceBindingStateRepository beancreateServiceInstanceAppBindingWorkflows
- a collection of create app binding workflowscreateServiceInstanceRouteBindingWorkflows
- a collection of create route binding workflowsdeleteServiceInstanceBindingWorkflows
- a collection of update workflows