En el ejemplo siguiente, se utiliza la clase CacheLoaderAdapter para ayudar en la implementación de MyCacheLoader.
... public class MyCacheLoader extends CacheLoaderAdapter<Integer, ReadWorkQueueDetails> { /* (no Javadoc) * @ver curam.util.cache.CacheLoader#load(java.lang.Object) */ public ReadWorkQueueDetails load(Integer workQueueID) throws AppException, InformationalException { WorkAllocation wa = (WorkAllocation)WorkAllocationFactory .newInstance(); ReadWorkQueueKey key = new ReadWorkQueueKey(); key.key = new ReadWorkQueueKey(); key.key.key = new WorkQueueKey(); key.key.key.workQueueID = workQueueID; ReadWorkQueueDetails item = wa.readWorkQueue(key); if(item != null) { return item.dtls; } return null; } } ...