Interface CachingClassCopierFactory
-
- All Superinterfaces:
ClassCopierFactory
public interface CachingClassCopierFactory extends ClassCopierFactory
A version of a ClassCopierFactory that implements caching, and so needs a way to update the cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
put(java.lang.Class<?> cls, ClassCopier copier)
Put copier into the cache for Class cls.-
Methods inherited from interface org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactory
getClassCopier
-
-
-
-
Method Detail
-
put
void put(java.lang.Class<?> cls, ClassCopier copier)
Put copier into the cache for Class cls. Thereafter, the get method will return the assigned copier for Class cls. There is no way to remove an entry from the cache. However, this cache must use weak keys (like WeakHashMap) to avoid pinning ClassLoaders in memory. Consequently entries in the cache MAY silently disappear.
-
-