Class GcpStorageAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.storage.GcpStorageAutoConfiguration
@AutoConfiguration
@ConditionalOnClass({GoogleStorageProtocolResolverSettings.class,com.google.cloud.storage.Storage.class})
@ConditionalOnProperty(value="spring.cloud.gcp.storage.enabled",
matchIfMissing=true)
@EnableConfigurationProperties({GcpProperties.class,GcpStorageProperties.class})
@Import(GoogleStorageProtocolResolver.class)
public class GcpStorageAutoConfiguration
extends Object
An auto-configuration for Google
GoogleStorageProtocolResolverSettings
bean definition.
Also it Import
a GoogleStorageProtocolResolver
to register it with the
DefaultResourceLoader
.- See Also:
-
Constructor Summary
ConstructorDescriptionGcpStorageAutoConfiguration
(GcpProjectIdProvider coreProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpStorageProperties gcpStorageProperties) -
Method Summary
-
Constructor Details
-
GcpStorageAutoConfiguration
public GcpStorageAutoConfiguration(GcpProjectIdProvider coreProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpStorageProperties gcpStorageProperties) throws IOException - Throws:
IOException
-
-
Method Details
-
storage
@Bean @ConditionalOnMissingBean public com.google.cloud.storage.Storage storage() throws IOException- Throws:
IOException
-