AnnotationProxies) from AnnotationDescriptors.
AnnotationProxy
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T extends Annotation> T | Returns: The annotation proxyThe annotation descriptor descriptor)Creates an Annotation proxy for the given annotation descriptor. |
| public static <T extends Annotation> T | Returns: The annotation proxyThe annotation descriptor descriptor, ClassLoader The ClassLoader to be used in defining the proxy classLoader)Overloaded form of Annotation proxy creation that accepts an explicit ClassLoader. |
| public static <T extends Annotation> T | Returns: The annotation proxyThe annotation descriptor descriptor)Legacy form of {@link #create(AnnotationDescriptor) using the current Thread#getContextClassLoader for proxy generation |
| AnnotationFactory | back to summary |
|---|---|
| public AnnotationFactory() | |
| create | back to summary |
|---|---|
| public static <T extends Annotation> T create(AnnotationDescriptor descriptor) Creates an Annotation proxy for the given annotation descriptor. Note the proxy here is generated using the ClassLoader of the Annotation type's Class. E.g., if asked to create an Annotation proxy for javax.persistence.Entity we would use the ClassLoader of the javax.persistence.Entity Class for generating the proxy.
| |
| create | back to summary |
|---|---|
| public static <T extends Annotation> T create(AnnotationDescriptor descriptor, ClassLoader classLoader) Overloaded form of Annotation proxy creation that accepts an explicit ClassLoader.
| |
| createUsingTccl | back to summary |
|---|---|
| public static <T extends Annotation> T createUsingTccl(AnnotationDescriptor descriptor) Legacy form of {@link #create(AnnotationDescriptor) using the current Thread#getContextClassLoader for proxy generation
| |