Package org.jboss.as.weld.util
Class Reflections
java.lang.Object
org.jboss.as.weld.util.Reflections
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic booleancontainsAnnotation(Class<?> javaClass, Class<? extends Annotation> requiredAnnotation) A simple implementation of theorg.jboss.weld.resources.spi.AnnotationDiscovery#containsAnnotation(Class, Class)contract.static booleancontainsAnnotations(Annotation[] annotations, Class<? extends Annotation> requiredAnnotation) static booleanisAccessible(String className, ClassLoader classLoader) static <T> Class<T>loadClass(String className, ClassLoader classLoader) static <T> TnewInstance(String className, ClassLoader classLoader)
-
Constructor Details
-
Reflections
public Reflections()
-
-
Method Details
-
cast
-
newInstance
-
isAccessible
-
loadClass
-
containsAnnotation
public static boolean containsAnnotation(Class<?> javaClass, Class<? extends Annotation> requiredAnnotation) A simple implementation of theorg.jboss.weld.resources.spi.AnnotationDiscovery#containsAnnotation(Class, Class)contract. This implementation uses reflection.- See Also:
-
org.jboss.as.weld.discovery.WeldAnnotationDiscovery
-
containsAnnotations
public static boolean containsAnnotations(Annotation[] annotations, Class<? extends Annotation> requiredAnnotation)
-