net.spy.factory
Interface CacheEntry

All Known Implementing Classes:
HashCacheEntry

public interface CacheEntry

Interface for factory cache implementations.


Method Summary
 void cacheInstance(Instance i)
          Cache the given instance.
 java.util.Collection getAllObjects()
          Get all objects in this cache.
 java.lang.Object getById(int id)
          Get an object by id.
 

Method Detail

cacheInstance

void cacheInstance(Instance i)
Cache the given instance.


getById

java.lang.Object getById(int id)
Get an object by id.

Parameters:
id - the object ID
Returns:
the object, or null if there's no object by this ID

getAllObjects

java.util.Collection getAllObjects()
Get all objects in this cache.



Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.