Package net.sf.ehcache.config
Class CopyStrategyConfiguration
- java.lang.Object
-
- net.sf.ehcache.config.CopyStrategyConfiguration
-
public class CopyStrategyConfiguration extends java.lang.Object- Author:
- Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description CopyStrategyConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CopyStrategyConfigurationcopy()Make copy of this configurationbooleanequals(java.lang.Object obj)java.lang.StringgetClassName()Returns the fully qualified class name for the CopyStrategy to useReadWriteCopyStrategy<Element>getCopyStrategyInstance(java.lang.ClassLoader loader)Get (and potentially) instantiate the instanceinthashCode()voidsetClass(java.lang.String className)Sets the fully qualified class name for the CopyStrategy to usevoidsetCopyStrategyInstance(ReadWriteCopyStrategy<Element> copyStrategy)Sets the CopyStrategy instance to use
-
-
-
Method Detail
-
getClassName
public java.lang.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(java.lang.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(java.lang.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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-