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,
org.jboss.weld.resources.spi.ResourceLoader resourceLoader) |
static <T> Class<T> |
loadClass(String className,
org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
Tries to load a class using the specified ResourceLoader.
|
static <T> T |
newInstance(org.jboss.weld.resources.spi.ResourceLoader loader,
String className,
Object... parameters) |
public static boolean containsAnnotation(Class<?> javaClass, Class<? extends Annotation> requiredAnnotation)
public static <T> T newInstance(org.jboss.weld.resources.spi.ResourceLoader loader, String className, Object... parameters)
public static <T> T cast(Object obj)
public static boolean isClassLoadable(String className, org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
public static <T> Class<T> loadClass(String className, org.jboss.weld.resources.spi.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 © 2016. All rights reserved.