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
Modifier and TypeClassDescriptionstatic @interface
static @interface
static @interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloudFoundryAppDeployer
(CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations, org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient, CloudFoundryOperationsUtils operationsUtils, CloudFoundryTargetProperties targetProperties, org.springframework.core.io.ResourceLoader resourceLoader) Provide aAppDeployer
beancloudFoundryAppManager
(CloudFoundryOperationsUtils cloudFoundryOperationsUtils) Provide anAppManager
beanorg.cloudfoundry.reactor.client.ReactorCloudFoundryClient
cloudFoundryClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorCloudFoundryClient
beanProvide aCloudFoundryDeploymentProperties
beancloudFoundryOAuth2Client
(org.cloudfoundry.uaa.UaaClient uaaClient) Provide anOAuth2Client
beanorg.cloudfoundry.operations.CloudFoundryOperations
cloudFoundryOperations
(CloudFoundryTargetProperties properties, org.cloudfoundry.client.CloudFoundryClient client, org.cloudfoundry.doppler.DopplerClient dopplerClient, org.cloudfoundry.uaa.UaaClient uaaClient) Provide aCloudFoundryOperations
beancloudFoundryOperationsUtils
(org.cloudfoundry.operations.CloudFoundryOperations operations) Provide aCloudFoundryOperationsUtils
beanProvide aCloudFoundryTargetProperties
beanorg.cloudfoundry.reactor.DefaultConnectionContext
connectionContext
(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContext
beanorg.cloudfoundry.reactor.doppler.ReactorDopplerClient
dopplerClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorDopplerClient
beanorg.cloudfoundry.logcache.v1.LogCacheClient
logCacheClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aLogCacheClient
beanorg.cloudfoundry.reactor.uaa.ReactorUaaClient
uaaClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorUaaClient
beanorg.cloudfoundry.reactor.TokenProvider
uaaTokenProvider
(CloudFoundryTargetProperties properties) Provide aTokenProvider
bean
-
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 aCloudFoundryDeploymentProperties
bean- Returns:
- the bean
-
cloudFoundryTargetProperties
@Bean @ConfigurationProperties("spring.cloud.appbroker.deployer.cloudfoundry") public CloudFoundryTargetProperties cloudFoundryTargetProperties()Provide aCloudFoundryTargetProperties
bean- Returns:
- the bean
-
cloudFoundryAppDeployer
@Bean public AppDeployer cloudFoundryAppDeployer(CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations, org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient, CloudFoundryOperationsUtils operationsUtils, CloudFoundryTargetProperties targetProperties, org.springframework.core.io.ResourceLoader resourceLoader) Provide aAppDeployer
bean- 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 anAppManager
bean- Parameters:
cloudFoundryOperationsUtils
- the CloudFoundryOperationsUtils bean- Returns:
- the bean
-
cloudFoundryOAuth2Client
Provide anOAuth2Client
bean- 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 aReactorCloudFoundryClient
bean- 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 aCloudFoundryOperations
bean- 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 aCloudFoundryOperationsUtils
bean- Parameters:
operations
- the CloudFoundryOperations bean- Returns:
- the bean
-
connectionContext
@Bean public org.cloudfoundry.reactor.DefaultConnectionContext connectionContext(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContext
bean- 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 aReactorDopplerClient
bean- Parameters:
connectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean- Returns:
- the bean
-
logCacheClient
@Bean public org.cloudfoundry.logcache.v1.LogCacheClient logCacheClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aLogCacheClient
bean- Parameters:
connectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean- Returns:
- the bean
-
uaaTokenProvider
@Bean public org.cloudfoundry.reactor.TokenProvider uaaTokenProvider(CloudFoundryTargetProperties properties) Provide aTokenProvider
bean- 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 aReactorUaaClient
bean- Parameters:
connectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean- Returns:
- the bean
-