Class ClassReflectionHelperUtilities


  • public class ClassReflectionHelperUtilities
    extends java.lang.Object
    • Field Detail

      • CONVENTION_POST_CONSTRUCT

        static final java.lang.String CONVENTION_POST_CONSTRUCT
        See Also:
        Constant Field Values
      • CONVENTION_PRE_DESTROY

        static final java.lang.String CONVENTION_PRE_DESTROY
        See Also:
        Constant Field Values
      • OBJECT_METHODS

        private static final java.util.Set<MethodWrapper> OBJECT_METHODS
      • OBJECT_FIELDS

        private static final java.util.Set<java.lang.reflect.Field> OBJECT_FIELDS
    • Constructor Detail

      • ClassReflectionHelperUtilities

        public ClassReflectionHelperUtilities()
    • Method Detail

      • getObjectMethods

        private static java.util.Set<MethodWrapper> getObjectMethods()
      • getObjectFields

        private static java.util.Set<java.lang.reflect.Field> getObjectFields()
      • secureGetDeclaredMethods

        private static java.lang.reflect.Method[] secureGetDeclaredMethods​(java.lang.Class<?> clazz)
      • secureGetDeclaredFields

        private static java.lang.reflect.Field[] secureGetDeclaredFields​(java.lang.Class<?> clazz)
      • getDeclaredMethodWrappers

        private static java.util.Set<MethodWrapper> getDeclaredMethodWrappers​(java.lang.Class<?> clazz)
        Gets the EXACT set of MethodWrappers on this class only. No subclasses. So this set should be considered RAW and has not taken into account any subclasses
        Parameters:
        clazz - The class to examine
        Returns:
      • getDeclaredFieldWrappers

        private static java.util.Set<java.lang.reflect.Field> getDeclaredFieldWrappers​(java.lang.Class<?> clazz)
        Gets the EXACT set of FieldWrappers on this class only. No subclasses. So this set should be considered RAW and has not taken into account any subclasses
        Parameters:
        clazz - The class to examine
        Returns:
      • getAllFieldWrappers

        static java.util.Set<java.lang.reflect.Field> getAllFieldWrappers​(java.lang.Class<?> clazz)
      • getAllMethodWrappers

        static java.util.Set<MethodWrapper> getAllMethodWrappers​(java.lang.Class<?> clazz)
      • isPostConstruct

        static boolean isPostConstruct​(java.lang.reflect.Method m)
      • isPreDestroy

        static boolean isPreDestroy​(java.lang.reflect.Method m)