Class GcpSpannerEmulatorAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.spanner.GcpSpannerEmulatorAutoConfiguration
@AutoConfiguration
@AutoConfigureBefore({GcpSpannerAutoConfiguration.class,GcpContextAutoConfiguration.class})
@EnableConfigurationProperties(GcpSpannerProperties.class)
@ConditionalOnProperty(prefix="spring.cloud.gcp.spanner.emulator",
name="enabled",
havingValue="true")
public class GcpSpannerEmulatorAutoConfiguration
extends Object
Provides auto-configuration to use the Spanner emulator if enabled.
- Since:
- 1.2.3
-
Constructor Summary
ConstructorDescriptionGcpSpannerEmulatorAutoConfiguration
(GcpSpannerProperties properties, GcpProjectIdProvider projectIdProvider) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.core.CredentialsProvider
com.google.cloud.spanner.SpannerOptions
spannerOptions
(Optional<SpannerOptionsCustomizer> customizer)
-
Constructor Details
-
GcpSpannerEmulatorAutoConfiguration
public GcpSpannerEmulatorAutoConfiguration(GcpSpannerProperties properties, GcpProjectIdProvider projectIdProvider)
-
-
Method Details
-
credentialsProvider
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider credentialsProvider() -
spannerOptions
@Bean @ConditionalOnMissingBean public com.google.cloud.spanner.SpannerOptions spannerOptions(Optional<SpannerOptionsCustomizer> customizer) throws IOException - Throws:
IOException
-