org.jboss.ejb3.cache
Interface ObjectStore<T extends Identifiable>

All Known Implementing Classes:
FileObjectStore

public interface ObjectStore<T extends Identifiable>

Stores an indentifiable object on a persistence store. Note that the object store does NOT call any callbacks. It is assumed the key represents something meaning full to the object store.

Version:
$Revision: $
Author:
Carlo de Wolf

Method Summary
 T load(Object key)
          Load the object from storage.
 void store(T obj)
          Store the object into storage.
 

Method Detail

load

T load(Object key)
Load the object from storage.

Parameters:
key - the object identifier
Returns:
the object or null if not found

store

void store(T obj)
Store the object into storage.

Parameters:
obj - the object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.