Class BeanDescriptionCache
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.util.beans.BeanDescriptionCache
- All Implemented Interfaces:
ContextAware
Cache for
BeanDescription
instances. All the cache users which use
the same instance of BeanDescriptionCache can profit from each others cached
bean descriptions.
The cache is not thread-safe and should not be shared across configurator instances.
- Author:
- urechm
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBeanDescription
(Class<?> clazz) Returned bean descriptions are hold in a cache.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
BeanDescriptionCache
-
-
Method Details
-
getBeanDescription
Returned bean descriptions are hold in a cache. If the cache does not contain a description for a given class, a new bean description is created and put in the cache, before it is returned.- Parameters:
clazz
- to get a bean description for.- Returns:
- a bean description for the given class.
-