public class MetaDataRetrievalToMetaDataBridge extends Object implements MetaData
NO_ANNOTATIONS, NO_METADATA
Constructor and Description |
---|
MetaDataRetrievalToMetaDataBridge(MetaDataRetrieval retrieval)
Create a new MetaDataRetrievalToMetaDataBridge.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
<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
|
protected MetaDataRetrieval |
getMetaDataRetrieval()
Get the meta data retrieval
|
MetaData |
getScopeMetaData(ScopeLevel level)
Get the scope metadata.
|
long |
getValidTime()
Get the valid time
|
int |
hashCode() |
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
|
String |
toString() |
public MetaDataRetrievalToMetaDataBridge(MetaDataRetrieval retrieval)
retrieval
- the retrievalpublic long getValidTime()
MetaData
getValidTime
in interface MetaData
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
MetaData
getAnnotation
in interface MetaData
T
- the annotation typeannotationType
- the annotation typepublic Annotation[] getAnnotations()
MetaData
getAnnotations
in interface MetaData
public Annotation[] getLocalAnnotations()
MetaData
getLocalAnnotations
in interface MetaData
public Annotation[] getAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
MetaData
getAnnotationsAnnotatedWith
in interface MetaData
meta
- the meta annotationpublic Object[] getMetaData()
MetaData
getMetaData
in interface MetaData
public Object[] getLocalMetaData()
MetaData
getLocalMetaData
in interface MetaData
public <T> T getMetaData(Class<T> type)
MetaData
getMetaData
in interface MetaData
T
- the metadata typetype
- the typepublic <T> T getMetaData(String name, Class<T> type)
MetaData
getMetaData
in interface MetaData
T
- the metadata typename
- the name of the meta datatype
- the expected type of the metadatapublic Object getMetaData(String name)
MetaData
getMetaData
in interface MetaData
name
- the name of the meta datapublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
MetaData
isAnnotationPresent
in interface MetaData
annotationType
- the annotation typepublic boolean isMetaDataPresent(Class<?> type)
MetaData
isMetaDataPresent
in interface MetaData
type
- the type of the meta datapublic boolean isMetaDataPresent(String name, Class<?> type)
MetaData
isMetaDataPresent
in interface MetaData
name
- the name of the meta datatype
- the expected type of the metadatapublic boolean isMetaDataPresent(String name)
MetaData
isMetaDataPresent
in interface MetaData
name
- the name of the meta datapublic MetaData getComponentMetaData(Signature signature)
MetaData
getComponentMetaData
in interface MetaData
signature
- the signaturepublic MetaData getScopeMetaData(ScopeLevel level)
MetaData
getScopeMetaData
in interface MetaData
level
- the scope levelpublic boolean isEmpty()
MetaData
protected MetaDataRetrieval getMetaDataRetrieval()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.