@Configuration
@ConditionalOnClass(value={GoogleStorageProtocolResolverSettings.class,com.google.cloud.storage.Storage.class})
@ConditionalOnProperty(value="spring.cloud.gcp.storage.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value={GcpProperties.class,GcpStorageProperties.class})
@Import(value=GoogleStorageProtocolResolver.class)
public abstract class GcpStorageAutoConfiguration
extends Object
GoogleStorageProtocolResolverSettings bean
definition. Also it Import a GoogleStorageProtocolResolver to register
it with the DefaultResourceLoader.GoogleStorageProtocolResolver| Constructor and Description |
|---|
GcpStorageAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static Storage |
storage(com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpStorageProperties gcpStorageProperties,
GcpProjectIdProvider projectIdProvider) |
@Bean @ConditionalOnMissingBean public static Storage storage(com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpStorageProperties gcpStorageProperties, GcpProjectIdProvider projectIdProvider) throws IOException
IOExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.