Package org.apache.xmlbeans.impl.common
Class SystemCache
java.lang.Object
org.apache.xmlbeans.impl.common.SystemCache
public class SystemCache extends Object
This class encapsulates the caching strategy for XmlBeans.
By subclassing this, a client of XmlBeans can implement caches that are
more suitable for different applications using information that XmlBeans
cannot know.
This class works as a singleton and as a default implementation for the cache.
You can set a particular implementation using the "xmlbean.systemcacheimpl"
system property or using the static
set(SystemCache) method.
Subclasses of this need to be thread-safe. An implementation can be replaced
at any time, so use of static variables is discouraged to ensure proper cleanup.-
Constructor Summary
Constructors Constructor Description SystemCache() -
Method Summary
Modifier and Type Method Description voidaddToTypeLoaderCache(SchemaTypeLoader stl, ClassLoader cl)voidclearThreadLocals()static SystemCacheget()SchemaTypeLoadergetFromTypeLoaderCache(ClassLoader cl)ObjectgetSaxLoader()static voidset(SystemCache instance)voidsetSaxLoader(Object saxLoader)
-
Constructor Details
-
SystemCache
public SystemCache()
-
-
Method Details
-
set
-
get
-
getFromTypeLoaderCache
-
addToTypeLoaderCache
-
clearThreadLocals
public void clearThreadLocals() -
getSaxLoader
-
setSaxLoader
-