org.jboss.hibernate.jbc.cacheprovider
Class OptimisticJndiBoundTreeCacheProvider

java.lang.Object
  extended by org.hibernate.cache.AbstractJndiBoundCacheProvider
      extended by org.jboss.hibernate.jbc.cacheprovider.JndiBoundTreeCacheProvider
          extended by org.jboss.hibernate.jbc.cacheprovider.OptimisticJndiBoundTreeCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider

Deprecated. JndiBoundTreeCacheProvider supports both optimistic and pessimistic cache configurations.

public class OptimisticJndiBoundTreeCacheProvider
extends JndiBoundTreeCacheProvider

Trivial JndiBoundTreeCacheProvider subclass that logs a warning in prepare if the underlying JBoss Cache is not configured for optimistic locking. Like the superclass, will provide working Cache implementations whether JBoss Cache is configured for optimistic locking or not; the only added behavior is the logging of the warning if the JBoss Cache configuration doesn't match the intent implied by the use of this class.

Author:
Galder Zamarreno, Brian Stansberry

Constructor Summary
OptimisticJndiBoundTreeCacheProvider()
          Deprecated.  
 
Method Summary
 void prepare(Properties properties)
          Deprecated.  
 
Methods inherited from class org.jboss.hibernate.jbc.cacheprovider.JndiBoundTreeCacheProvider
buildCache, getUnderlyingCache, isMinimalPutsEnabledByDefault, isOptimistic, nextTimestamp
 
Methods inherited from class org.hibernate.cache.AbstractJndiBoundCacheProvider
getCache, release, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimisticJndiBoundTreeCacheProvider

public OptimisticJndiBoundTreeCacheProvider()
Deprecated. 
Method Detail

prepare

public void prepare(Properties properties)
             throws org.hibernate.cache.CacheException
Deprecated. 
Overrides:
prepare in class JndiBoundTreeCacheProvider
Throws:
org.hibernate.cache.CacheException


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.