@ThreadSafe public final class JAXBContextCache extends AbstractNotifyingCache<Package,JAXBContext>
DEFAULT_JMX_ENABLED, m_aCacheAccessStats, m_aRWLock, STATISTICS_PREFIX| Modifier and Type | Method and Description |
|---|---|
JAXBContext |
getFromCache(Class<?> aClass) |
static JAXBContextCache |
getInstance() |
JAXBContext |
getValueToCache(Package aPackage)
This abstract method is invoked, once a new value needs to be put into the
cache.
|
static boolean |
isInstantiated() |
getFromCacheclearCache, createCache, getFromCacheNoStats, getFromCacheNoStatsNotLocked, getFromCacheNotLocked, getName, isEmpty, isJMXEnabled, isNotEmpty, putInCache, putInCacheNotLocked, removeFromCache, setJMXEnabled, size, toStringpublic static boolean isInstantiated()
@Nonnull public static JAXBContextCache getInstance()
@Nullable @IsLocked(value=WRITE) public JAXBContext getValueToCache(@Nullable Package aPackage)
AbstractNotifyingCachegetValueToCache in class AbstractNotifyingCache<Package,JAXBContext>aPackage - The key for which the value to cache is required. May be
nullable or not - depends upon the implementation.null.@Nullable public JAXBContext getFromCache(@Nonnull Class<?> aClass)
Copyright © 2006–2015 phloc systems. All rights reserved.