Class BeanInfoCache


  • public final class BeanInfoCache
    extends Object
    BeanInfo cache that stores introspection results by bean class and stop class. This goes beyond the caching provided by the JRE, which only caches the results of Introspector.getBeanInfo(Class), but not the results of Introspector.getBeanInfo(Class, Class) (with non null stop class).

    To avoid class loader leaks, this class should not be used as a singleton if the introspected classes are loaded from class loaders that are children of the class loader which holds the reference to the cache. In such scenarios, use getCachedBeanInfo(Class, Class).

    • Constructor Detail

      • BeanInfoCache

        public BeanInfoCache()