1 // Copyright 2012 Google Inc. All rights reserved.
3 package com
.google
.appengine
.api
.datastore
;
6 * This interface should be implemented by providers of the {@link DatastoreService} and registered
7 * with {@link com.google.appengine.spi.ServiceFactoryFactory}.
10 public interface IDatastoreServiceFactory
{
12 * Creates a {@code DatastoreService} using the provided config.
14 DatastoreService
getDatastoreService(DatastoreServiceConfig config
);
17 * Creates an {@code AsyncDatastoreService} using the provided config. The async datastore service
18 * does not support implicit transaction management policy
19 * {@link ImplicitTransactionManagementPolicy#AUTO}.
21 * @throws IllegalArgumentException If the provided {@link DatastoreServiceConfig} has an implicit
22 * transaction management policy of {@link ImplicitTransactionManagementPolicy#AUTO}.
24 AsyncDatastoreService
getAsyncDatastoreService(DatastoreServiceConfig config
);