public class CacheManagerServiceProvider extends Object implements ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_MANAGER_RESOURCE_PROP
Reuses the same JNDI name from the second level cache implementation
based on Infinispan
|
static String |
DEFAULT_INFINISPAN_CONFIGURATION_RESOURCENAME
If no configuration is defined an no JNDI lookup name is provided, than a new Infinispan CacheManager
will be started using this configuration.
|
static String |
INFINISPAN_CONFIGURATION_RESOURCENAME
The configuration property to use as key to define a custom configuration for Infinispan.
|
Constructor and Description |
---|
CacheManagerServiceProvider() |
Modifier and Type | Method and Description |
---|---|
org.infinispan.manager.EmbeddedCacheManager |
getService() |
void |
start(Properties properties,
BuildContext context) |
void |
stop() |
public static final String DEFAULT_INFINISPAN_CONFIGURATION_RESOURCENAME
public static final String CACHE_MANAGER_RESOURCE_PROP
org.hibernate.cache.infinispan.JndiInfinispanRegionFactory.CACHE_MANAGER_RESOURCE_PROP
,
Constant Field Valuespublic static final String INFINISPAN_CONFIGURATION_RESOURCENAME
public void start(Properties properties, BuildContext context)
start
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
public org.infinispan.manager.EmbeddedCacheManager getService()
getService
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
public void stop()
stop
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
Copyright © 2006–2014 Hibernate. All rights reserved.