ehcache

net.sf.ehcache.config
Class CopyStrategyConfiguration

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

public class CopyStrategyConfiguration
extends Object

Author:
Alex Snaps

Constructor Summary
CopyStrategyConfiguration()
           
 
Method Summary
protected  CopyStrategyConfiguration copy()
          Make copy of this configuration
 boolean equals(Object obj)
          
 String getClassName()
          Returns the fully qualified class name for the CopyStrategy to use
 ReadWriteCopyStrategy<Element> getCopyStrategyInstance(ClassLoader loader)
          Get (and potentially) instantiate the instance
 int hashCode()
          
 void setClass(String className)
          Sets the fully qualified class name for the CopyStrategy to use
 void setCopyStrategyInstance(ReadWriteCopyStrategy<Element> copyStrategy)
          Sets the CopyStrategy instance to use
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyStrategyConfiguration

public CopyStrategyConfiguration()
Method Detail

getClassName

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

Returns:
FQCN to the CopyStrategy implementation to use

setClass

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

Parameters:
className - FQCN

setCopyStrategyInstance

public void setCopyStrategyInstance(ReadWriteCopyStrategy<Element> copyStrategy)
Sets the CopyStrategy instance to use

Parameters:
copyStrategy - the copy strategy

getCopyStrategyInstance

public ReadWriteCopyStrategy<Element> getCopyStrategyInstance(ClassLoader loader)
Get (and potentially) instantiate the instance

Returns:
the instance

copy

protected CopyStrategyConfiguration copy()
Make copy of this configuration

Returns:
a copy of this configuration

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

ehcache

Copyright 2001-2014, Terracotta, Inc.