Class PropertyDescriptorCacheEntryFactory

  • All Implemented Interfaces:
    CacheEntryFactory<java.lang.Class<?>,​java.util.Map<java.lang.String,​java.beans.PropertyDescriptor>>, ClassCacheEntryFactory<java.util.Map<java.lang.String,​java.beans.PropertyDescriptor>>

    public class PropertyDescriptorCacheEntryFactory
    extends java.lang.Object
    implements ClassCacheEntryFactory<java.util.Map<java.lang.String,​java.beans.PropertyDescriptor>>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.beans.PropertyDescriptor> create​(java.lang.Class<?> targetClass)  
      (package private) static java.lang.reflect.Method findClosestMatchingMethod​(java.lang.Class<?> targetClass, java.lang.reflect.Method m, java.lang.String propertyName, java.lang.Class<?> propertyType, boolean isReadMethod)  
      private static void findObjectIndexedPropertyDescriptors​(java.lang.Class<?> targetClass, java.util.Map<java.lang.String,​java.beans.PropertyDescriptor> intoMap)  
      private static boolean indexMethodCheck​(java.util.List<java.lang.reflect.Method> methods)  
      • Methods inherited from class java.lang.Object

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

      • PropertyDescriptorCacheEntryFactory

        public PropertyDescriptorCacheEntryFactory()
    • Method Detail

      • create

        public java.util.Map<java.lang.String,​java.beans.PropertyDescriptor> create​(java.lang.Class<?> targetClass)
                                                                                   throws CacheException
        Specified by:
        create in interface CacheEntryFactory<java.lang.Class<?>,​java.util.Map<java.lang.String,​java.beans.PropertyDescriptor>>
        Throws:
        CacheException
      • findClosestMatchingMethod

        static java.lang.reflect.Method findClosestMatchingMethod​(java.lang.Class<?> targetClass,
                                                                  java.lang.reflect.Method m,
                                                                  java.lang.String propertyName,
                                                                  java.lang.Class<?> propertyType,
                                                                  boolean isReadMethod)
                                                           throws OgnlException
        Throws:
        OgnlException
      • findObjectIndexedPropertyDescriptors

        private static void findObjectIndexedPropertyDescriptors​(java.lang.Class<?> targetClass,
                                                                 java.util.Map<java.lang.String,​java.beans.PropertyDescriptor> intoMap)
                                                          throws OgnlException
        Throws:
        OgnlException
      • indexMethodCheck

        private static boolean indexMethodCheck​(java.util.List<java.lang.reflect.Method> methods)