|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.util.ObjectCache
public class ObjectCache
A cache for CachedObjects that reflect files. A cached object is loaded per filename (not the filename of the held object in the cache).
Constructor Summary | |
---|---|
ObjectCache(String filename)
Create a new cache. |
|
ObjectCache(String filename,
boolean persist_always,
boolean persist_single)
Create a new cache. |
|
ObjectCache(String filename,
boolean persist_always,
boolean persist_single,
int max)
Create a new cache. |
Method Summary | |
---|---|
void |
add(CachedObject co)
Add a cached object. |
void |
clear()
Clear the cache. |
CachedObject |
loadCachedObject(String filename,
long lastmodified)
Load the cached file. |
static ObjectCache |
loadObjectCache(String filename)
Load the model cache. |
void |
persist()
Presist the cached object. |
void |
remove(String filename)
Add a cached object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectCache(String filename)
public ObjectCache(String filename, boolean persist_always, boolean persist_single)
public ObjectCache(String filename, boolean persist_always, boolean persist_single, int max)
Method Detail |
---|
public CachedObject loadCachedObject(String filename, long lastmodified)
filename
- The filename of the cached object.lastmodified
- The last modified date important for the up-to-date check.
-1 for do not check.public void add(CachedObject co)
co
- The new object.public void remove(String filename)
filename
- The filename.public void persist() throws IOException
IOException
public void clear()
public static ObjectCache loadObjectCache(String filename)
filename
- The filename.
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.