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.
super.start(properties);
if (isOptimistic() == false)
{
log.warn("JBoss Cache is not configured for optimistic locking; " +
"provided Cache implementations therefore will not implement OptimisticCache");
}