|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.PropertyCache<T>
T
- The type of values that are cachedpublic final class PropertyCache<T>
Thread-safe cache that minimizes the memory requirements by fetching an instance from the cache that is equal to the given one. Internally the instances are stored in WeakReferences in order to be reclaimed when they are no longer referenced.
Constructor Summary | |
---|---|
PropertyCache()
Creates a new cache. |
Method Summary | |
---|---|
T |
fetch(T obj)
Returns a cached version of the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyCache()
fetch(Object)
method will simply
return its argument. To enable the cache, set this property to "true"
(case insensitive).
Method Detail |
---|
public T fetch(T obj)
obj
- an object
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |