Class ClassKeyedRegistry<V>
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.impl.SuperKeyedRegistry<Class<?>,V>
-
- org.nuxeo.ecm.automation.core.impl.ClassKeyedRegistry<V>
-
public class ClassKeyedRegistry<V> extends SuperKeyedRegistry<Class<?>,V>
- Author:
- Bogdan Stefanescu
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.automation.core.impl.SuperKeyedRegistry
lookup, registry
-
-
Constructor Summary
Constructors Constructor Description ClassKeyedRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Class<?>>
getSuperKeys(Class<?> key)
protected boolean
isCachingEnabled(Class<?> key)
Override this in order to disable caching some specific keys.protected boolean
isRoot(Class<?> key)
-
Methods inherited from class org.nuxeo.ecm.automation.core.impl.SuperKeyedRegistry
flushCache, get, put, remove
-
-
-
-
Method Detail
-
isRoot
protected boolean isRoot(Class<?> key)
- Specified by:
isRoot
in classSuperKeyedRegistry<Class<?>,V>
-
getSuperKeys
protected List<Class<?>> getSuperKeys(Class<?> key)
- Specified by:
getSuperKeys
in classSuperKeyedRegistry<Class<?>,V>
-
isCachingEnabled
protected boolean isCachingEnabled(Class<?> key)
Description copied from class:SuperKeyedRegistry
Override this in order to disable caching some specific keys. For example when using java classes as keys you may want to avoid caching proxy classes. The default is to return true. (cache is enabled)- Overrides:
isCachingEnabled
in classSuperKeyedRegistry<Class<?>,V>
-
-