Class ClassUtils


  • public class ClassUtils
    extends Object
    • Constructor Detail

      • ClassUtils

        public ClassUtils()
    • Method Detail

      • newInstance

        public static <T> T newInstance​(Class<T> cls,
                                        ClassLoader classLoader)
      • newInstance

        public static <T> T newInstance​(Class<T> c)
      • getClassLoader

        public static ClassLoader getClassLoader()
      • canBeInstantiated

        public static boolean canBeInstantiated​(Class<?> cls)
      • isAnnotationOfType

        public static boolean isAnnotationOfType​(Annotation annotation,
                                                 Class<?> type)
      • getAllDeclaredAnnotations

        public static List<Annotation> getAllDeclaredAnnotations​(Class<?> cls)
      • getAllDeclaredAnnotationsByType

        public static <T extends AnnotationList<T> getAllDeclaredAnnotationsByType​(Class<?> cls,
                                                                                     Class<T> type)
      • isMethodAnnotatedWith

        public static <A extends Annotation> boolean isMethodAnnotatedWith​(Method method,
                                                                           Class<A> annotation)
      • isSuperTypesAnnotatedWith

        public static <A extends Annotation> boolean isSuperTypesAnnotatedWith​(Class<?> component,
                                                                               Class<A> annotation)
      • getAllSuperTypes

        public static Set<Class<?>> getAllSuperTypes​(Class<?> type)
      • getSuperTypes

        public static Set<Class<?>> getSuperTypes​(Class<?> type)