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.
- Author:
- Roy Clarkson, Scott Frederick, Alberto Rios
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
static @interface
static @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, org.springframework.core.io.ResourceLoader resourceLoader) Provide aAppDeployer
bean.cloudFoundryAppManager
(CloudFoundryOperationsUtils cloudFoundryOperationsUtils) Provide anAppManager
bean.org.cloudfoundry.reactor.client.ReactorCloudFoundryClient
cloudFoundryClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorCloudFoundryClient
bean.Provide aCloudFoundryDeploymentProperties
bean.cloudFoundryOAuth2Client
(org.cloudfoundry.uaa.UaaClient uaaClient) Provide anOAuth2Client
bean.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.cloudFoundryOperationsUtils
(org.cloudfoundry.operations.CloudFoundryOperations operations) Provide aCloudFoundryOperationsUtils
bean.Provide aCloudFoundryTargetProperties
bean.org.cloudfoundry.reactor.DefaultConnectionContext
connectionContext
(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContext
bean.org.cloudfoundry.reactor.doppler.ReactorDopplerClient
dopplerClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorDopplerClient
bean.org.cloudfoundry.logcache.v1.LogCacheClient
logCacheClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aLogCacheClient
bean.org.cloudfoundry.reactor.uaa.ReactorUaaClient
uaaClient
(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorUaaClient
bean.org.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
-