public final class Reflections
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(java.lang.Object obj) |
static <T> java.lang.Class<T> |
classForName(ResourceLoader resourceLoader,
java.lang.String className)
First try to load a class using the specified ResourceLoader.
|
static boolean |
containsAnnotation(java.lang.Class<?> javaClass,
java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation) |
static boolean |
hasBeanDefiningMetaAnnotationSpecified(java.lang.annotation.Annotation[] annotations,
java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType) |
static boolean |
isClassLoadable(ResourceLoader resourceLoader,
java.lang.String className) |
static <T> java.lang.Class<T> |
loadClass(ResourceLoader resourceLoader,
java.lang.String className) |
public static boolean containsAnnotation(java.lang.Class<?> javaClass,
java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation)
public static <T> T cast(java.lang.Object obj)
public static boolean isClassLoadable(ResourceLoader resourceLoader, java.lang.String className)
resourceLoader - className - true if a class with the given name can be loaded, false otherwiseloadClass(ResourceLoader, String)public static <T> java.lang.Class<T> loadClass(ResourceLoader resourceLoader, java.lang.String className)
resourceLoader - className - classForName(ResourceLoader, String)public static <T> java.lang.Class<T> classForName(ResourceLoader resourceLoader, java.lang.String className)
Class.forName(String) as a fallback.resourceLoader - className - public static boolean hasBeanDefiningMetaAnnotationSpecified(java.lang.annotation.Annotation[] annotations,
java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
annotations - metaAnnotationType - true if any of the annotations specified has the given meta annotation type specified, false otherwiseCopyright © 2015. All Rights Reserved.