FileDocCategorySizeDatePackage
OptimisticTreeCacheProviderHook.javaAPI DocJBoss 4.2.11271Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3.entity

OptimisticTreeCacheProviderHook

public class OptimisticTreeCacheProviderHook extends TreeCacheProviderHook
Trivial {@link TreeCacheProviderHook} subclass that logs a warning in {@link #start(Properties) start} 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
author
Brian Stansberry

Fields Summary
Constructors Summary
Methods Summary
public voidstart(java.util.Properties properties)

      super.start(properties);
      
      if (isOptimistic() == false)
      {
         log.warn("JBoss Cache is not configured for optimistic locking; " +
         "provided Cache implementations therefore will not implement OptimisticCache");
      }