Class CloudFoundryAppDeployerAutoConfiguration
java.lang.Object
org.springframework.cloud.appbroker.autoconfigure.CloudFoundryAppDeployerAutoConfiguration
@Configuration
@ConditionalOnProperty("spring.cloud.appbroker.deployer.cloudfoundry.api-host")
@EnableConfigurationProperties
public class CloudFoundryAppDeployerAutoConfiguration
extends Object
Auto-configuration support for deploying apps to Cloud Foundry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic @interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloudFoundryAppDeployer(CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations, org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient, CloudFoundryOperationsUtils operationsUtils, CloudFoundryTargetProperties targetProperties, ResourceLoader resourceLoader) Provide aAppDeployerbeancloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils) Provide anAppManagerbeanorg.cloudfoundry.reactor.client.ReactorCloudFoundryClientcloudFoundryClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorCloudFoundryClientbeanProvide aCloudFoundryDeploymentPropertiesbeancloudFoundryOAuth2Client(org.cloudfoundry.uaa.UaaClient uaaClient) Provide anOAuth2Clientbeanorg.cloudfoundry.operations.CloudFoundryOperationscloudFoundryOperations(CloudFoundryTargetProperties properties, org.cloudfoundry.client.CloudFoundryClient client, org.cloudfoundry.doppler.DopplerClient dopplerClient, org.cloudfoundry.uaa.UaaClient uaaClient) Provide aCloudFoundryOperationsbeancloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations) Provide aCloudFoundryOperationsUtilsbeanProvide aCloudFoundryTargetPropertiesbeanorg.cloudfoundry.reactor.DefaultConnectionContextconnectionContext(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContextbeanorg.cloudfoundry.reactor.doppler.ReactorDopplerClientdopplerClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorDopplerClientbeanorg.cloudfoundry.reactor.uaa.ReactorUaaClientuaaClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorUaaClientbeanorg.cloudfoundry.reactor.TokenProvideruaaTokenProvider(CloudFoundryTargetProperties properties) Provide aTokenProviderbean
-
Field Details
-
PROPERTY_PREFIX
- See Also:
-
-
Constructor Details
-
CloudFoundryAppDeployerAutoConfiguration
public CloudFoundryAppDeployerAutoConfiguration()
-
-
Method Details
-
cloudFoundryDeploymentProperties
@Bean @ConfigurationProperties("spring.cloud.appbroker.deployer.cloudfoundry.properties") public CloudFoundryDeploymentProperties cloudFoundryDeploymentProperties()Provide aCloudFoundryDeploymentPropertiesbean- Returns:
- the bean
-
cloudFoundryTargetProperties
@Bean @ConfigurationProperties("spring.cloud.appbroker.deployer.cloudfoundry") public CloudFoundryTargetProperties cloudFoundryTargetProperties()Provide aCloudFoundryTargetPropertiesbean- Returns:
- the bean
-
cloudFoundryAppDeployer
@Bean public AppDeployer cloudFoundryAppDeployer(CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations, org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient, CloudFoundryOperationsUtils operationsUtils, CloudFoundryTargetProperties targetProperties, ResourceLoader resourceLoader) Provide aAppDeployerbean- Parameters:
deploymentProperties- the CloudFoundryDeploymentProperties beancloudFoundryOperations- the CloudFoundryOperations beancloudFoundryClient- the CloudFoundryClient beanoperationsUtils- the CloudFoundryOperationsUtils beantargetProperties- the CloudFoundryTargetProperties beanresourceLoader- the ResourceLoader bean- Returns:
- the bean
-
cloudFoundryAppManager
@Bean public AppManager cloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils) Provide anAppManagerbean- Parameters:
cloudFoundryOperationsUtils- the CloudFoundryOperationsUtils bean- Returns:
- the bean
-
cloudFoundryOAuth2Client
Provide anOAuth2Clientbean- Parameters:
uaaClient- the UaaClient bean- Returns:
- the bean
-
cloudFoundryClient
@Bean public org.cloudfoundry.reactor.client.ReactorCloudFoundryClient cloudFoundryClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorCloudFoundryClientbean- Parameters:
connectionContext- the ConnectionContext beantokenProvider- the TokenProvider bean- Returns:
- the bean
-
cloudFoundryOperations
@Bean public org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations(CloudFoundryTargetProperties properties, org.cloudfoundry.client.CloudFoundryClient client, org.cloudfoundry.doppler.DopplerClient dopplerClient, org.cloudfoundry.uaa.UaaClient uaaClient) Provide aCloudFoundryOperationsbean- Parameters:
properties- the CloudFoundryTargetProperties beanclient- the CloudFoundryClient beandopplerClient- the DopplerClient beanuaaClient- the UaaClient bean- Returns:
- the bean
-
cloudFoundryOperationsUtils
@Bean public CloudFoundryOperationsUtils cloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations) Provide aCloudFoundryOperationsUtilsbean- Parameters:
operations- the CloudFoundryOperations bean- Returns:
- the bean
-
connectionContext
@Bean public org.cloudfoundry.reactor.DefaultConnectionContext connectionContext(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContextbean- Parameters:
properties- the CloudFoundryTargetProperties bean- Returns:
- the bean
-
dopplerClient
@Bean public org.cloudfoundry.reactor.doppler.ReactorDopplerClient dopplerClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorDopplerClientbean- Parameters:
connectionContext- the ConnectionContext beantokenProvider- the TokenProvider bean- Returns:
- the bean
-
uaaTokenProvider
@Bean public org.cloudfoundry.reactor.TokenProvider uaaTokenProvider(CloudFoundryTargetProperties properties) Provide aTokenProviderbean- Parameters:
properties- the CloudFoundryTargetProperties bean- Returns:
- the bean
-
uaaClient
@Bean public org.cloudfoundry.reactor.uaa.ReactorUaaClient uaaClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorUaaClientbean- Parameters:
connectionContext- the ConnectionContext beantokenProvider- the TokenProvider bean- Returns:
- the bean
-