public class AnnotationFactory extends Object
AnnotationProxies
) from AnnotationDescriptors
.AnnotationProxy
Constructor and Description |
---|
AnnotationFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
create(AnnotationDescriptor descriptor)
Creates an Annotation proxy for the given annotation descriptor.
|
static <T extends Annotation> |
create(AnnotationDescriptor descriptor,
ClassLoader classLoader)
Overloaded form of Annotation proxy creation that accepts an explicit ClassLoader.
|
static <T extends Annotation> |
createUsingTccl(AnnotationDescriptor descriptor)
Legacy form of {@link #create(AnnotationDescriptor) using the current Thread#getContextClassLoader
for proxy generation
|
public static <T extends Annotation> T create(AnnotationDescriptor descriptor)
descriptor
- The annotation descriptorpublic static <T extends Annotation> T createUsingTccl(AnnotationDescriptor descriptor)
descriptor
- The annotation descriptorpublic static <T extends Annotation> T create(AnnotationDescriptor descriptor, ClassLoader classLoader)
descriptor
- The annotation descriptorclassLoader
- The ClassLoader to be used in defining the proxyCopyright © 2021 JBoss by Red Hat. All rights reserved.