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
  • Field Details

  • Constructor Details

    • CloudFoundryAppDeployerAutoConfiguration

      public CloudFoundryAppDeployerAutoConfiguration()
  • Method Details

    • cloudFoundryDeploymentProperties

      @Bean @ConfigurationProperties("spring.cloud.appbroker.deployer.cloudfoundry.properties") public CloudFoundryDeploymentProperties cloudFoundryDeploymentProperties()
      Returns:
      the bean
    • cloudFoundryTargetProperties

      @Bean @ConfigurationProperties("spring.cloud.appbroker.deployer.cloudfoundry") public CloudFoundryTargetProperties cloudFoundryTargetProperties()
      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 a AppDeployer bean
      Parameters:
      deploymentProperties - the CloudFoundryDeploymentProperties bean
      cloudFoundryOperations - the CloudFoundryOperations bean
      cloudFoundryClient - the CloudFoundryClient bean
      operationsUtils - the CloudFoundryOperationsUtils bean
      targetProperties - the CloudFoundryTargetProperties bean
      resourceLoader - the ResourceLoader bean
      Returns:
      the bean
    • cloudFoundryAppManager

      @Bean public AppManager cloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils)
      Provide an AppManager bean
      Parameters:
      cloudFoundryOperationsUtils - the CloudFoundryOperationsUtils bean
      Returns:
      the bean
    • cloudFoundryOAuth2Client

      @Bean public OAuth2Client cloudFoundryOAuth2Client(org.cloudfoundry.uaa.UaaClient uaaClient)
      Provide an OAuth2Client 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 a ReactorCloudFoundryClient bean
      Parameters:
      connectionContext - the ConnectionContext bean
      tokenProvider - 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 a CloudFoundryOperations bean
      Parameters:
      properties - the CloudFoundryTargetProperties bean
      client - the CloudFoundryClient bean
      dopplerClient - the DopplerClient bean
      uaaClient - the UaaClient bean
      Returns:
      the bean
    • cloudFoundryOperationsUtils

      @Bean public CloudFoundryOperationsUtils cloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations)
      Parameters:
      operations - the CloudFoundryOperations bean
      Returns:
      the bean
    • connectionContext

      @Bean public org.cloudfoundry.reactor.DefaultConnectionContext connectionContext(CloudFoundryTargetProperties properties)
      Provide a DefaultConnectionContext 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 a ReactorDopplerClient bean
      Parameters:
      connectionContext - the ConnectionContext bean
      tokenProvider - 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 a LogCacheClient bean
      Parameters:
      connectionContext - the ConnectionContext bean
      tokenProvider - the TokenProvider bean
      Returns:
      the bean
    • uaaTokenProvider

      @Bean public org.cloudfoundry.reactor.TokenProvider uaaTokenProvider(CloudFoundryTargetProperties properties)
      Provide a TokenProvider 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 a ReactorUaaClient bean
      Parameters:
      connectionContext - the ConnectionContext bean
      tokenProvider - the TokenProvider bean
      Returns:
      the bean