com.googlecode.ehcache.annotations.config
Class ExactCacheNameMatcherImpl

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

public class ExactCacheNameMatcherImpl
extends java.lang.Object
implements CacheNameMatcher

Implementation of CacheNameMatcher for matching a specific name.

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

Constructor Summary
ExactCacheNameMatcherImpl(java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 Vote matches(java.lang.String cacheName)
          Returns Vote.YEA if the name field String.equals(Object) the cacheName argument, Vote.ABSTAIN otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactCacheNameMatcherImpl

public ExactCacheNameMatcherImpl(java.lang.String name)
Parameters:
name -
Throws:
java.lang.IllegalArgumentException - if the name argument is null
Method Detail

matches

public Vote matches(java.lang.String cacheName)
Returns Vote.YEA if the name field String.equals(Object) the cacheName argument, Vote.ABSTAIN otherwise.

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:
String.equals(Object), CacheNameMatcher.matches(java.lang.String)

getName

public java.lang.String getName()
Returns:
the name this matcher is configured to match


Copyright © 2011. All Rights Reserved.