@Configuration @ConditionalOnProperty(value="spring.cloud.appbroker.deployer.cloudfoundry.api-host") @EnableConfigurationProperties public class CloudFoundryAppDeployerAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CloudFoundryAppDeployerAutoConfiguration.TokenQualifier |
static interface |
CloudFoundryAppDeployerAutoConfiguration.UaaClientQualifier |
Modifier and Type | Field and Description |
---|---|
protected static String |
PROPERTY_PREFIX |
Constructor and Description |
---|
CloudFoundryAppDeployerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
AppDeployer |
cloudFoundryAppDeployer(CloudFoundryDeploymentProperties deploymentProperties,
org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations,
org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient,
CloudFoundryOperationsUtils operationsUtils,
CloudFoundryTargetProperties targetProperties,
ResourceLoader resourceLoader)
Provide a
AppDeployer bean |
AppManager |
cloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils)
Provide an
AppManager bean |
org.cloudfoundry.reactor.client.ReactorCloudFoundryClient |
cloudFoundryClient(org.cloudfoundry.reactor.ConnectionContext connectionContext,
org.cloudfoundry.reactor.TokenProvider tokenProvider)
Provide a
ReactorCloudFoundryClient bean |
CloudFoundryDeploymentProperties |
cloudFoundryDeploymentProperties()
Provide a
CloudFoundryDeploymentProperties bean |
OAuth2Client |
cloudFoundryOAuth2Client(org.cloudfoundry.uaa.UaaClient uaaClient)
Provide an
OAuth2Client bean |
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 |
CloudFoundryOperationsUtils |
cloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations)
Provide a
CloudFoundryOperationsUtils bean |
CloudFoundryTargetProperties |
cloudFoundryTargetProperties()
Provide a
CloudFoundryTargetProperties bean |
org.cloudfoundry.reactor.DefaultConnectionContext |
connectionContext(CloudFoundryTargetProperties properties)
Provide a
DefaultConnectionContext bean |
org.cloudfoundry.reactor.doppler.ReactorDopplerClient |
dopplerClient(org.cloudfoundry.reactor.ConnectionContext connectionContext,
org.cloudfoundry.reactor.TokenProvider tokenProvider)
Provide a
ReactorDopplerClient bean |
org.cloudfoundry.reactor.uaa.ReactorUaaClient |
uaaClient(org.cloudfoundry.reactor.ConnectionContext connectionContext,
org.cloudfoundry.reactor.TokenProvider tokenProvider)
Provide a
ReactorUaaClient bean |
org.cloudfoundry.reactor.TokenProvider |
uaaTokenProvider(CloudFoundryTargetProperties properties)
Provide a
TokenProvider bean |
protected static final String PROPERTY_PREFIX
public CloudFoundryAppDeployerAutoConfiguration()
@Bean @ConfigurationProperties(value="spring.cloud.appbroker.deployer.cloudfoundry.properties") public CloudFoundryDeploymentProperties cloudFoundryDeploymentProperties()
CloudFoundryDeploymentProperties
bean@Bean @ConfigurationProperties(value="spring.cloud.appbroker.deployer.cloudfoundry") public CloudFoundryTargetProperties cloudFoundryTargetProperties()
CloudFoundryTargetProperties
bean@Bean public AppDeployer cloudFoundryAppDeployer(CloudFoundryDeploymentProperties deploymentProperties, org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations, org.cloudfoundry.client.CloudFoundryClient cloudFoundryClient, CloudFoundryOperationsUtils operationsUtils, CloudFoundryTargetProperties targetProperties, ResourceLoader resourceLoader)
AppDeployer
beandeploymentProperties
- the CloudFoundryDeploymentProperties beancloudFoundryOperations
- the CloudFoundryOperations beancloudFoundryClient
- the CloudFoundryClient beanoperationsUtils
- the CloudFoundryOperationsUtils beantargetProperties
- the CloudFoundryTargetProperties beanresourceLoader
- the ResourceLoader bean@Bean public AppManager cloudFoundryAppManager(CloudFoundryOperationsUtils cloudFoundryOperationsUtils)
AppManager
beancloudFoundryOperationsUtils
- the CloudFoundryOperationsUtils bean@Bean public OAuth2Client cloudFoundryOAuth2Client(org.cloudfoundry.uaa.UaaClient uaaClient)
OAuth2Client
beanuaaClient
- the UaaClient bean@Bean public org.cloudfoundry.reactor.client.ReactorCloudFoundryClient cloudFoundryClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider)
ReactorCloudFoundryClient
beanconnectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean@Bean public org.cloudfoundry.operations.CloudFoundryOperations cloudFoundryOperations(CloudFoundryTargetProperties properties, org.cloudfoundry.client.CloudFoundryClient client, org.cloudfoundry.doppler.DopplerClient dopplerClient, org.cloudfoundry.uaa.UaaClient uaaClient)
CloudFoundryOperations
beanproperties
- the CloudFoundryTargetProperties beanclient
- the CloudFoundryClient beandopplerClient
- the DopplerClient beanuaaClient
- the UaaClient bean@Bean public CloudFoundryOperationsUtils cloudFoundryOperationsUtils(org.cloudfoundry.operations.CloudFoundryOperations operations)
CloudFoundryOperationsUtils
beanoperations
- the CloudFoundryOperations bean@Bean public org.cloudfoundry.reactor.DefaultConnectionContext connectionContext(CloudFoundryTargetProperties properties)
DefaultConnectionContext
beanproperties
- the CloudFoundryTargetProperties bean@Bean public org.cloudfoundry.reactor.doppler.ReactorDopplerClient dopplerClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider)
ReactorDopplerClient
beanconnectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean@Bean public org.cloudfoundry.reactor.TokenProvider uaaTokenProvider(CloudFoundryTargetProperties properties)
TokenProvider
beanproperties
- the CloudFoundryTargetProperties bean@Bean public org.cloudfoundry.reactor.uaa.ReactorUaaClient uaaClient(org.cloudfoundry.reactor.ConnectionContext connectionContext, org.cloudfoundry.reactor.TokenProvider tokenProvider)
ReactorUaaClient
beanconnectionContext
- the ConnectionContext beantokenProvider
- the TokenProvider bean