public interface LegacySupportPlugin
| Modifier and Type | Method and Description |
|---|---|
<L extends Annotation,M extends Annotation> |
getAnnotation(AccessibleObject aObject,
Class<M> aAnnotationClass)
Gets the annotation from the given object.
|
<L extends Annotation,M extends Annotation> |
getAnnotation(Class<?> aObject,
Class<M> aAnnotationClass)
Gets the annotation from the given object.
|
boolean |
isAnnotationPresent(AccessibleObject aObject,
Class<? extends Annotation> aAnnotationClass)
Checks if a legacy version of the given modern annotation is present.
|
boolean |
isAnnotationPresent(Class<?> aObject,
Class<? extends Annotation> aAnnotationClass)
Checks if a legacy version of the given modern annotation is present.
|
String[] |
scanTypeDescriptors(MetaDataType aType)
Get all currently accessible descriptor locations for the given type.
|
boolean isAnnotationPresent(AccessibleObject aObject, Class<? extends Annotation> aAnnotationClass)
aObject - an object that might have a legacy annotation.aAnnotationClass - the modern annotation type.true if a legacy version of the annotation is present.boolean isAnnotationPresent(Class<?> aObject, Class<? extends Annotation> aAnnotationClass)
aObject - an object that might have a legacy annotation.aAnnotationClass - the modern annotation type.true if a legacy version of the annotation is present.<L extends Annotation,M extends Annotation> M getAnnotation(AccessibleObject aObject, Class<M> aAnnotationClass)
L - legacy annotation typeM - modern annotation typeaObject - an object that has a legacy annotation.aAnnotationClass - the modern annotation type.<L extends Annotation,M extends Annotation> M getAnnotation(Class<?> aObject, Class<M> aAnnotationClass)
L - legacy annotation typeM - modern annotation typeaObject - an object that has a legacy annotation.aAnnotationClass - the modern annotation type.String[] scanTypeDescriptors(MetaDataType aType) throws ResourceInitializationException
aType - the type of metadata to scan forResourceInitializationException - if the locations could not be resolved.Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.