站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 Cache API Documentation 英文版文档

CacheLoaderAop (JBoss Cache API) - JBoss 3.2.7 Cache API Documentation 英文版文档


org.jboss.cache.loader
Interface CacheLoaderAop

All Superinterfaces:
CacheLoader, org.jboss.system.Service

public interface CacheLoaderAop
extends CacheLoader

Responsible for storing and retrieving objects to/from secondary storage.

Version:
$Id: CacheLoaderAop.java,v 1.1.2.4 2004/12/30 17:08:27 starksm Exp $
Author:
Bela Ban Oct 31, 2003

Method Summary
 Object loadObject(Fqn name)
          Loads an object from a persistent store.
 void removeObject(Fqn name)
          Removes the object with the given key from the persistent store.
 void storeObject(Fqn name, Object pojo)
          Stores an object under a given key in the persistent store.
 
Methods inherited from interface org.jboss.cache.loader.CacheLoader
commit, exists, get, get, getChildrenNames, loadEntireState, prepare, put, put, put, remove, remove, removeData, rollback, setCache, setConfig, storeEntireState
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

loadObject

public Object loadObject(Fqn name)
                  throws Exception
Loads an object from a persistent store.

Parameters:
name - The key under which the object is stored
Returns:
The object
Throws:
Exception - Thrown if the object cannot be loaded

storeObject

public void storeObject(Fqn name,
                        Object pojo)
                 throws Exception
Stores an object under a given key in the persistent store. If the object is already present, it will be overwritten

Parameters:
name -
pojo -
Throws:
Exception

removeObject

public void removeObject(Fqn name)
                  throws Exception
Removes the object with the given key from the persistent store.

Parameters:
name -
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.