public final class Reflections
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(java.lang.Object obj) |
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(java.lang.String className,
ResourceLoader resourceLoader) |
static <T> java.lang.Class<T> |
loadClass(java.lang.String className,
ResourceLoader resourceLoader)
Tries to load a class using the specified ResourceLoader.
|
static <T> T |
newInstance(ResourceLoader loader,
java.lang.String className,
java.lang.Object... parameters) |
public static boolean containsAnnotation(java.lang.Class<?> javaClass,
java.lang.Class<? extends java.lang.annotation.Annotation> requiredAnnotation)
public static <T> T newInstance(ResourceLoader loader, java.lang.String className, java.lang.Object... parameters)
public static <T> T cast(java.lang.Object obj)
public static boolean isClassLoadable(java.lang.String className,
ResourceLoader resourceLoader)
public static <T> java.lang.Class<T> loadClass(java.lang.String className,
ResourceLoader resourceLoader)
className - resourceLoader - 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 © 2014. All Rights Reserved.