|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.fo.properties.PropertyCache
Dedicated cache, meant for storing canonical instances
of property-related classes.
The public access points are overloaded fetch() methods
that each correspond to a cached type.
It is designed especially to be used concurrently by multiple threads,
drawing heavily upon the principles behind Java 1.5's
ConcurrentHashMap.
| Constructor Summary | |
PropertyCache()
Default constructor. |
|
| Method Summary | |
CommonFont.CachedCommonFont |
fetch(CommonFont.CachedCommonFont ccf)
Checks if the given CachedCommonFont is present in the cache -
if so, returns a reference to the cached instance. |
CommonFont |
fetch(CommonFont cf)
Checks if the given CommonFont is present in the cache -
if so, returns a reference to the cached instance. |
CommonHyphenation |
fetch(CommonHyphenation chy)
Checks if the given CommonHyphenation is present in the cache -
if so, returns a reference to the cached instance. |
Property |
fetch(Property prop)
Checks if the given Property is present in the cache -
if so, returns a reference to the cached instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyCache()
| Method Detail |
public final Property fetch(Property prop)
Property is present in the cache -
if so, returns a reference to the cached instance.
Otherwise the given object is added to the cache and returned.
prop - the Property instance to check for
public final CommonHyphenation fetch(CommonHyphenation chy)
CommonHyphenation is present in the cache -
if so, returns a reference to the cached instance.
Otherwise the given object is added to the cache and returned.
chy - the CommonHyphenation instance to check for
public final CommonFont.CachedCommonFont fetch(CommonFont.CachedCommonFont ccf)
CachedCommonFont is present in the cache -
if so, returns a reference to the cached instance.
Otherwise the given object is added to the cache and returned.
ccf - the CachedCommonFont instance to check for
public final CommonFont fetch(CommonFont cf)
CommonFont is present in the cache -
if so, returns a reference to the cached instance.
Otherwise the given object is added to the cache and returned.
cf - the CommonFont instance to check for
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||