Class GcpDatastoreAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.datastore.GcpDatastoreAutoConfiguration
@AutoConfiguration
@AutoConfigureAfter(GcpContextAutoConfiguration.class)
@ConditionalOnProperty(value="spring.cloud.gcp.datastore.enabled",
matchIfMissing=true)
@ConditionalOnClass({DatastoreOperations.class,com.google.cloud.datastore.Datastore.class})
@EnableConfigurationProperties(GcpDatastoreProperties.class)
public class GcpDatastoreAutoConfiguration
extends Object
Provides Spring Data classes to use with Cloud Datastore.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.datastore.Datastore
datastoreEntityConverter
(DatastoreMappingContext datastoreMappingContext, ReadWriteConversions conversions) datastoreProvider
(org.springframework.beans.factory.ObjectProvider<DatastoreNamespaceProvider> namespaceProvider, org.springframework.beans.factory.ObjectProvider<com.google.cloud.datastore.Datastore> datastoreProvider) datastoreReadWriteConversions
(DatastoreCustomConversions customConversions, ObjectToKeyFactory objectToKeyFactory, DatastoreMappingContext datastoreMappingContext) datastoreTemplate
(Supplier<? extends com.google.cloud.datastore.DatastoreReaderWriter> datastore, DatastoreMappingContext datastoreMappingContext, DatastoreEntityConverter datastoreEntityConverter, ObjectToKeyFactory objectToKeyFactory) objectToKeyFactory
(DatastoreProvider datastore)
-
Method Details
-
datastore
@Bean @ConditionalOnMissingBean({com.google.cloud.datastore.Datastore.class,DatastoreNamespaceProvider.class,DatastoreProvider.class}) public com.google.cloud.datastore.Datastore datastore() -
datastoreProvider
@Bean @ConditionalOnMissingBean public DatastoreProvider datastoreProvider(org.springframework.beans.factory.ObjectProvider<DatastoreNamespaceProvider> namespaceProvider, org.springframework.beans.factory.ObjectProvider<com.google.cloud.datastore.Datastore> datastoreProvider) -
datastoreCustomConversions
-
datastoreReadWriteConversions
@Bean @ConditionalOnMissingBean public ReadWriteConversions datastoreReadWriteConversions(DatastoreCustomConversions customConversions, ObjectToKeyFactory objectToKeyFactory, DatastoreMappingContext datastoreMappingContext) -
datastoreMappingContext
-
objectToKeyFactory
@Bean @ConditionalOnMissingBean public ObjectToKeyFactory objectToKeyFactory(DatastoreProvider datastore) -
datastoreEntityConverter
@Bean @ConditionalOnMissingBean public DatastoreEntityConverter datastoreEntityConverter(DatastoreMappingContext datastoreMappingContext, ReadWriteConversions conversions) -
datastoreTemplate
@Bean @ConditionalOnMissingBean public DatastoreTemplate datastoreTemplate(Supplier<? extends com.google.cloud.datastore.DatastoreReaderWriter> datastore, DatastoreMappingContext datastoreMappingContext, DatastoreEntityConverter datastoreEntityConverter, ObjectToKeyFactory objectToKeyFactory)
-