Class BeanDescriptionCache

  • All Implemented Interfaces:

    public class BeanDescriptionCache
    extends ContextAwareBase
    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.

    • Constructor Detail

      • BeanDescriptionCache

        public BeanDescriptionCache​(Context context)
    • Method Detail

      • getBeanDescription

        public BeanDescription getBeanDescription​(Class<?> clazz)
        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.
        clazz - to get a bean description for.
        a bean description for the given class.