@Configuration
@ConditionalOnClass(value={GoogleStorageProtocolResolverSettings.class,com.google.cloud.storage.Storage.class})
@EnableConfigurationProperties(value={GcpProperties.class,GcpStorageProperties.class})
@Import(value=GoogleStorageProtocolResolver.class)
public 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 com.google.cloud.storage.Storage |
storage(com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpStorageProperties gcpStorageProperties,
GcpProjectIdProvider projectIdProvider) |
@Bean
@ConditionalOnMissingBean
public static com.google.cloud.storage.Storage storage(com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpStorageProperties gcpStorageProperties,
GcpProjectIdProvider projectIdProvider)
throws IOException
IOExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.