cacheRunner
Class StringLoader

java.lang.Object
  extended by cacheRunner.StringLoader
All Implemented Interfaces:
CacheCallback, CacheLoader, Declarable

public class StringLoader
extends Object
implements CacheLoader, Declarable

A CacheLoader that simply returns the value of the key that is loaded.

Since:
3.5
Author:
GemStone Systems, Inc.

Constructor Summary
StringLoader()
           
 
Method Summary
 void close()
           
 void init(Properties props)
          Nothing to initialize
 Object load(LoaderHelper helper)
          Simply return the string value of the key being loaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringLoader

public StringLoader()
Method Detail

load

public Object load(LoaderHelper helper)
            throws CacheLoaderException
Simply return the string value of the key being loaded

Specified by:
load in interface CacheLoader
Throws:
CacheLoaderException
See Also:
LoaderHelper.getKey(), String.valueOf(Object)

init

public void init(Properties props)
Nothing to initialize

Specified by:
init in interface Declarable

close

public void close()
Specified by:
close in interface CacheCallback


Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.