com.googlecode.ehcache.annotations.config
Class NotCacheNameMatcherImpl

java.lang.Object
  extended by com.googlecode.ehcache.annotations.config.NotCacheNameMatcherImpl
All Implemented Interfaces:
CacheNameMatcher

public final class NotCacheNameMatcherImpl
extends java.lang.Object
implements CacheNameMatcher

CacheNameMatcher that wraps another CacheNameMatcher and performs a logical NOT on the result of the wrapped matches(String) method if not null.

Version:
$Id: NotCacheNameMatcherImpl.java 656 2011-04-21 19:54:27Z eric.dalquist@gmail.com $
Author:
Nicholas Blair

Constructor Summary
NotCacheNameMatcherImpl(CacheNameMatcher wrapped)
           
 
Method Summary
 CacheNameMatcher getWrapped()
           
 Vote matches(java.lang.String cacheName)
          Retrieve the value from wrapped CacheNameMatcher's matches method, then return the Vote.not(Vote) of the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotCacheNameMatcherImpl

public NotCacheNameMatcherImpl(CacheNameMatcher wrapped)
Parameters:
wrapped -
Method Detail

matches

public Vote matches(java.lang.String cacheName)
Retrieve the value from wrapped CacheNameMatcher's matches method, then return the Vote.not(Vote) of the result.

Specified by:
matches in interface CacheNameMatcher
Returns:
Vote.YEA if this should definitely be included, Vote.NAY if definitely excluded, or Vote.ABSTAIN if impl has no opinion
See Also:
Vote.not(Vote), CacheNameMatcher.matches(java.lang.String)

getWrapped

public CacheNameMatcher getWrapped()
Returns:
the wrapped CacheNameMatcher


Copyright © 2011. All Rights Reserved.