|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.netuix.application.util.NonSerializingCacheWrapper<T>
public class NonSerializingCacheWrapper<T>
The NonSerializingCacheWrapper object wraps a cache and ensures it is
not serialized. This is useful when storing a cache in an HttpSession
and the cache is not intended to be replicated (if session replication
is being used). This allows the cache to gain all the benefits of being in a
Session object (namely, a lifespan equal to the Session lifespan) but
without incurring any burden on the session replication mechanism.
Constructor Summary | |
---|---|
NonSerializingCacheWrapper()
Constructs a new NonSerializingCacheWrapper with a null cache object. |
|
NonSerializingCacheWrapper(T cache)
Constructs a new NonSerializingCacheWrapper with the specified cache object. |
Method Summary | |
---|---|
T |
getCache()
Returns the cache object, or null if not available. |
void |
readExternal(ObjectInput in)
Does nothing. |
void |
setCache(T cache)
Sets the cache object. |
void |
writeExternal(ObjectOutput out)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonSerializingCacheWrapper()
public NonSerializingCacheWrapper(T cache)
Method Detail |
---|
public T getCache()
public void setCache(T cache)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |