abstractpublic class JRAbstractLRUVirtualizer implements JRVirtualizer(Code)
Abstract base for LRU and serialization based virtualizer
author: John Bindel version: $Id: JRAbstractLRUVirtualizer.java 1797 2007-07-30 09:38:35Z teodord $
Inner Class :protected static class CacheReference extends WeakReference
Inner Class :protected class Cache
Inner Class :protected class ClassLoaderAnnotationObjectOutputStream extends ObjectOutputStream
Inner Class :protected class ClassLoaderAnnotationObjectInputStream extends ObjectInputStream
Reads serialized identity and virtual data for a virtualizable object
from a stream.
Parameters: o - the virtualizable object Parameters: in - the input stream throws: JRRuntimeException -
Sets the read only mode for the virtualizer.
When in read-only mode, the virtualizer assumes that virtualizable objects are final
and any change in a virtualizable object's data is discarded.
When the virtualizer is used for multiple virtualization contexts (in shared mode),
calling this method would override the read-only flags from all the contexts and all the
objects will be manipulated in read-only mode.
Use
JRVirtualizationContext.setReadOnly(boolean) JRVirtualizationContext.setReadOnly(boolean) to set the read-only mode for one specific context.
Parameters: ro - the read-only mode to set
Writes serialized indentity and virtual data of a virtualizable object to a stream.
Parameters: o - the serialized object Parameters: out - the output stream throws: JRRuntimeException -