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 @interfacestatic @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, org.springframework.core.io.ResourceLoader resourceLoader) Provide aAppDeployerbean.cloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils) Provide anAppManagerbean.org.cloudfoundry.reactor.client.ReactorCloudFoundryClientcloudFoundryClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorCloudFoundryClientbean.Provide aCloudFoundryDeploymentPropertiesbean.cloudFoundryOAuth2Client(org.cloudfoundry.uaa.UaaClient uaaClient) Provide anOAuth2Clientbean.org.cloudfoundry.operations.CloudFoundryOperationscloudFoundryOperations(CloudFoundryTargetProperties properties, org.cloudfoundry.client.CloudFoundryClient client, org.cloudfoundry.doppler.DopplerClient dopplerClient, org.cloudfoundry.uaa.UaaClient uaaClient) Provide aCloudFoundryOperationsbean.cloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations) Provide aCloudFoundryOperationsUtilsbean.Provide aCloudFoundryTargetPropertiesbean.org.cloudfoundry.reactor.DefaultConnectionContextconnectionContext(CloudFoundryTargetProperties properties) Provide aDefaultConnectionContextbean.org.cloudfoundry.reactor.doppler.ReactorDopplerClientdopplerClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorDopplerClientbean.org.cloudfoundry.logcache.v1.LogCacheClientlogCacheClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aLogCacheClientbean.org.cloudfoundry.reactor.uaa.ReactorUaaClientuaaClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aReactorUaaClientbean.org.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, org.springframework.core.io.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
-
logCacheClient
@Bean public org.cloudfoundry.logcache.v1.LogCacheClient logCacheClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider) Provide aLogCacheClientbean.- 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
-