org.jboss.hibernate.cache
Class DeployedTreeCacheProvider

java.lang.Object
  extended byorg.jboss.hibernate.cache.DeployedTreeCacheProvider

public class DeployedTreeCacheProvider
extends java.lang.Object

A Hibernate CacheProvider implementation which knows how to obtain a deployed JBossCache via its JMX ObjectName.


Field Summary
static java.lang.String DEFAULT_OBJECT_NAME
           
static java.lang.String OBJECT_NAME_PROP
           
 
Constructor Summary
DeployedTreeCacheProvider()
           
 
Method Summary
 Cache buildCache(java.lang.String name, java.util.Properties properties)
          Called by Hibernate in order to build the given named cache "region".
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
           
 void start(java.util.Properties properties)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_NAME_PROP

public static final java.lang.String OBJECT_NAME_PROP
See Also:
Constant Field Values (src)

DEFAULT_OBJECT_NAME

public static final java.lang.String DEFAULT_OBJECT_NAME
See Also:
Constant Field Values (src)
Constructor Detail

DeployedTreeCacheProvider

public DeployedTreeCacheProvider()
Method Detail

start

public void start(java.util.Properties properties)
           throws CacheException
Throws:
CacheException

stop

public void stop()

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()

buildCache

public Cache buildCache(java.lang.String name,
                        java.util.Properties properties)
                 throws CacheException
Called by Hibernate in order to build the given named cache "region".

Parameters:
name - The cache "region" name.
properties - The configuration properties.
Returns:
The constructed Cache wrapper around the jndi-deployed TreeCache.
Throws:
CacheException - Generally indicates a problem locating the TreeCache.

nextTimestamp

public long nextTimestamp()