org.hibernate.search.infinispan
Class CacheManagerServiceProvider
java.lang.Object
org.hibernate.search.infinispan.CacheManagerServiceProvider
- All Implemented Interfaces:
- ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
public class CacheManagerServiceProvider
- extends Object
- implements ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
Provides access to Infinispan's CacheManager; one CacheManager is needed for all caches,
it can be taken via JNDI or started by this ServiceProvider; in this case it will also
be stopped when no longer needed.
- Author:
- Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INFINISPAN_CONFIGURATION_RESOURCENAME
public static final 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. Such a configuration file is provided in Hibernate Search's
jar.
- See Also:
- Constant Field Values
CACHE_MANAGER_RESOURCE_PROP
public static final String CACHE_MANAGER_RESOURCE_PROP
- Reuses the same JNDI name from the second level cache implementation
based on Infinispan
- See Also:
JndiInfinispanRegionFactory.CACHE_MANAGER_RESOURCE_PROP
,
Constant Field Values
INFINISPAN_CONFIGURATION_RESOURCENAME
public static final String INFINISPAN_CONFIGURATION_RESOURCENAME
- The configuration property to use as key to define a custom configuration for Infinispan.
Ignored if hibernate.search.infinispan.cachemanager_jndiname is defined.
- See Also:
- Constant Field Values
CacheManagerServiceProvider
public CacheManagerServiceProvider()
start
public void start(Properties properties,
BuildContext context)
- Specified by:
start
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
getService
public org.infinispan.manager.EmbeddedCacheManager getService()
- Specified by:
getService
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
stop
public void stop()
- Specified by:
stop
in interface ServiceProvider<org.infinispan.manager.EmbeddedCacheManager>
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved