public final class Reflections extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
cast(Object obj) |
static boolean |
containsAnnotation(Class<?> javaClass,
Class<? extends Annotation> requiredAnnotation) |
static boolean |
hasBeanDefiningMetaAnnotationSpecified(Annotation[] annotations,
Class<? extends Annotation> metaAnnotationType) |
static boolean |
isClassLoadable(String className,
ResourceLoader resourceLoader) |
static <T> Class<T> |
loadClass(String className,
ResourceLoader resourceLoader)
Tries to load a class using the specified ResourceLoader.
|
static <T> T |
newInstance(ResourceLoader loader,
String className,
Object... parameters) |
public static boolean containsAnnotation(Class<?> javaClass, Class<? extends Annotation> requiredAnnotation)
public static <T> T newInstance(ResourceLoader loader, String className, Object... parameters)
public static <T> T cast(Object obj)
public static boolean isClassLoadable(String className, ResourceLoader resourceLoader)
public static <T> Class<T> loadClass(String className, ResourceLoader resourceLoader)
className - resourceLoader - public static boolean hasBeanDefiningMetaAnnotationSpecified(Annotation[] annotations, Class<? extends Annotation> metaAnnotationType)
annotations - metaAnnotationType - true if any of the annotations specified has the given meta annotation type specified, false
otherwiseCopyright © 2015. All Rights Reserved.