|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.kernel.ACSObjectCache
A centralized cache for ACSObjects
. At present, it
only supports caching of objects in the request. Evenutally, it should
support caching objects as request, session and request attributes.
For request-scope caching, objects are stored as attributes of the
ServletRequest
. The name of the attribute only depends on the
object's ID, so that only one copy of each object is stored.
Method Summary | |
static ACSObject |
get(javax.servlet.ServletRequest req,
BigDecimal id)
Get the ACSObject with ID id from the
request req . |
static void |
set(javax.servlet.ServletRequest req,
ACSObject obj)
Store obj as a request attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void set(javax.servlet.ServletRequest req, ACSObject obj)
obj
as a request attribute.
req
- the request, in which the object is to be cached.obj
- the object to cache.public static ACSObject get(javax.servlet.ServletRequest req, BigDecimal id)
ACSObject
with ID id
from the
request req
. Return null
if the object has
not been put into the cache. If the ID is null then this will
return null.
req
- the request, in which the object is to be cached.id
- an Object
value
ACSObject
value or null if the id is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |