public interface MetaData
Modifier and Type | Field and Description |
---|---|
static Annotation[] |
NO_ANNOTATIONS
No annotations
|
static Object[] |
NO_METADATA
No meta data
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Get annotation
|
Annotation[] |
getAnnotations()
Get all the annotations
|
Annotation[] |
getAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
Get all the annotations annotated with the given meta annotation
|
MetaData |
getComponentMetaData(Signature signature)
Get the component metadata
|
Annotation[] |
getLocalAnnotations()
Get all the local annotations
|
Object[] |
getLocalMetaData()
Get all the local metadata
|
Object[] |
getMetaData()
Get all the metadata
|
<T> T |
getMetaData(Class<T> type)
Get metadata
|
Object |
getMetaData(String name)
Get metadata
|
<T> T |
getMetaData(String name,
Class<T> type)
Get metadata
|
MetaData |
getScopeMetaData(ScopeLevel level)
Get the scope metadata.
|
long |
getValidTime()
Get the valid time
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Is the annotation present?
|
boolean |
isEmpty()
Is metadata empty.
|
boolean |
isMetaDataPresent(Class<?> type)
Is the metadata present
|
boolean |
isMetaDataPresent(String name)
Is the metadata present
|
boolean |
isMetaDataPresent(String name,
Class<?> type)
Is the metadata present
|
static final Annotation[] NO_ANNOTATIONS
static final Object[] NO_METADATA
long getValidTime()
<T extends Annotation> T getAnnotation(Class<T> annotationType)
T
- the annotation typeannotationType
- the annotation typeAnnotation[] getAnnotations()
Annotation[] getLocalAnnotations()
boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
annotationType
- the annotation typeAnnotation[] getAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
meta
- the meta annotation<T> T getMetaData(Class<T> type)
T
- the metadata typetype
- the typeObject[] getMetaData()
Object[] getLocalMetaData()
boolean isMetaDataPresent(Class<?> type)
type
- the type of the meta dataObject getMetaData(String name)
name
- the name of the meta data<T> T getMetaData(String name, Class<T> type)
T
- the metadata typename
- the name of the meta datatype
- the expected type of the metadataboolean isMetaDataPresent(String name)
name
- the name of the meta databoolean isMetaDataPresent(String name, Class<?> type)
name
- the name of the meta datatype
- the expected type of the metadataMetaData getComponentMetaData(Signature signature)
signature
- the signatureMetaData getScopeMetaData(ScopeLevel level)
level
- the scope levelboolean isEmpty()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.