ehcache

net.sf.ehcache.writer.writebehind
Class CastingOperationConverter

java.lang.Object
  extended by net.sf.ehcache.writer.writebehind.CastingOperationConverter
All Implemented Interfaces:
OperationConverter<KeyBasedOperation>

public final class CastingOperationConverter
extends Object
implements OperationConverter<KeyBasedOperation>

A converter that simply casts an existing KeyBasedOperation instance.

Version:
$Id: CastingOperationConverter.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Geert Bevin

Method Summary
 KeyBasedOperation convert(Object source)
          Convert an arbitrary object
static CastingOperationConverter getInstance()
          Singleton retriever static method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CastingOperationConverter getInstance()
Singleton retriever static method


convert

public KeyBasedOperation convert(Object source)
Convert an arbitrary object

Specified by:
convert in interface OperationConverter<KeyBasedOperation>
Parameters:
source - the object to convert
Returns:
the converted operation instance

ehcache

Copyright 2001-2016, Terracotta, Inc.