ehcache

net.sf.ehcache.config
Class ElementValueComparatorConfiguration

java.lang.Object
  extended by net.sf.ehcache.config.ElementValueComparatorConfiguration

public class ElementValueComparatorConfiguration
extends Object

Author:
Ludovic Orban

Constructor Summary
ElementValueComparatorConfiguration()
           
 
Method Summary
 ElementValueComparator createElementComparatorInstance(CacheConfiguration cacheConfiguration, ClassLoader loader)
          Get (and potentially) instantiate the instance
 boolean equals(Object obj)
          
 String getClassName()
          Returns the fully qualified class name for the ElementValueComparator to use
 int hashCode()
          
 void setClass(String className)
          Sets the fully qualified class name for the ElementValueComparator to use
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementValueComparatorConfiguration

public ElementValueComparatorConfiguration()
Method Detail

getClassName

public String getClassName()
Returns the fully qualified class name for the ElementValueComparator to use

Returns:
FQCN to the ElementValueComparator implementation to use

setClass

public void setClass(String className)
Sets the fully qualified class name for the ElementValueComparator to use

Parameters:
className - FQCN

createElementComparatorInstance

public ElementValueComparator createElementComparatorInstance(CacheConfiguration cacheConfiguration,
                                                              ClassLoader loader)
Get (and potentially) instantiate the instance

Parameters:
cacheConfiguration - the cache configuration
loader - classloader to use to create the instance
Returns:
the instance

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

ehcache

Copyright 2001-2015, Terracotta, Inc.