public interface AnnotationRepository
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Annotation> |
getAnnotation(java.lang.Class<?> annotation)
Get the instances of an annotation
|
java.util.Collection<Annotation> |
getAnnotation(java.lang.String annotation)
Get the instances of an annotation
|
java.util.Set<java.lang.String> |
getAvailableAnnotations()
Get the available annotation keys
|
boolean |
hasAnnotation(java.lang.Class<?> annotation)
Does the repository contain references of the specified annotation
|
boolean |
hasAnnotation(java.lang.String annotation)
Does the repository contain references of the specified annotation
|
void |
merge(AnnotationRepository ar)
Merge an annotation repository
|
Settings |
settings()
Get the settings for repository
|
Settings settings()
java.util.Set<java.lang.String> getAvailableAnnotations()
boolean hasAnnotation(java.lang.Class<?> annotation)
annotation
- The annotation classboolean hasAnnotation(java.lang.String annotation)
annotation
- The fully qualified class name for the annotationjava.util.Collection<Annotation> getAnnotation(java.lang.Class<?> annotation)
annotation
- The annotation classnull
if no annotations existsjava.util.Collection<Annotation> getAnnotation(java.lang.String annotation)
annotation
- The fully qualified class name for the annotationnull
if no annotations existsvoid merge(AnnotationRepository ar)
ar
- The annotation repositoryCopyright ? 2009 Red Hat Middleware LLC (http://www.jboss.com/)