@Configuration(proxyBeanMethods=false) @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 class GcpStorageAutoConfiguration extends Object
GoogleStorageProtocolResolverSettings
bean
definition. Also it Import
a GoogleStorageProtocolResolver
to register
it with the DefaultResourceLoader
.GoogleStorageProtocolResolver
Constructor and Description |
---|
GcpStorageAutoConfiguration(GcpProjectIdProvider coreProjectIdProvider,
com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpStorageProperties gcpStorageProperties) |
public GcpStorageAutoConfiguration(GcpProjectIdProvider coreProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpStorageProperties gcpStorageProperties) throws IOException
IOException
@Bean @ConditionalOnMissingBean public Storage storage() throws IOException
IOException
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.