public class InfinispanDatastoreProvider extends Object implements DatastoreProvider, Startable, Stoppable, ServiceRegistryAwareService, Configurable
Constructor and Description |
---|
InfinispanDatastoreProvider() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map configurationValues) |
org.infinispan.Cache |
getCache(String name) |
GlobalContext<?,?> |
getConfigurationBuilder(ConfigurationContext context)
Returns a new store-specific
GlobalContext instance. |
Class<? extends GridDialect> |
getDefaultDialect() |
Class<? extends QueryParserService> |
getDefaultQueryParserServiceType()
Returns the type of
QueryParserService to be used for executing queries against the underlying datastore
if no parser service type was explicitly configured by the user via the
OgmConfiguration.OGM_QUERY_PARSER_SERVICE option. |
org.infinispan.manager.EmbeddedCacheManager |
getEmbeddedCacheManager() |
void |
injectServices(ServiceRegistryImplementor serviceRegistry) |
void |
start() |
void |
stop() |
public Class<? extends GridDialect> getDefaultDialect()
getDefaultDialect
in interface DatastoreProvider
public Class<? extends QueryParserService> getDefaultQueryParserServiceType()
DatastoreProvider
QueryParserService
to be used for executing queries against the underlying datastore
if no parser service type was explicitly configured by the user via the
OgmConfiguration.OGM_QUERY_PARSER_SERVICE
option.getDefaultQueryParserServiceType
in interface DatastoreProvider
QueryParserService
for the underlying datastore; never null
public org.infinispan.manager.EmbeddedCacheManager getEmbeddedCacheManager()
public org.infinispan.Cache getCache(String name)
public void injectServices(ServiceRegistryImplementor serviceRegistry)
injectServices
in interface ServiceRegistryAwareService
public void configure(Map configurationValues)
configure
in interface Configurable
public GlobalContext<?,?> getConfigurationBuilder(ConfigurationContext context)
DatastoreProvider
GlobalContext
instance.getConfigurationBuilder
in interface DatastoreProvider
context
- configuration context to be used as factory for creating the global context objectGlobalContext
Copyright © 2010-2013 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.