Class BeanInfoUtils


  • public class BeanInfoUtils
    extends java.lang.Object
    Utilities to get the BeanInfo of a class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.concurrent.ConcurrentMap<java.lang.Class<?>,​java.beans.BeanInfo> cache
      BeanInfo cache.
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanInfoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.beans.BeanInfo getBeanInfo​(java.lang.Class<?> clazz)
      Get a BeanInfo from cache or create it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cache

        private static final java.util.concurrent.ConcurrentMap<java.lang.Class<?>,​java.beans.BeanInfo> cache
        BeanInfo cache.
    • Constructor Detail

      • BeanInfoUtils

        public BeanInfoUtils()
    • Method Detail

      • getBeanInfo

        public static java.beans.BeanInfo getBeanInfo​(java.lang.Class<?> clazz)
        Get a BeanInfo from cache or create it. Stop introspection to Object or Throwable if the class is a subtype of Throwable
        Parameters:
        clazz - The class
        Returns:
        BeanInfo of the class