org.jboss.metadata.spi.retrieval
Interface MetaDataRetrieval

All Known Subinterfaces:
MetaDataContext, MetaDataLoader, MutableMetaDataLoader
All Known Implementing Classes:
AbstractMetaDataContext, AbstractMetaDataLoader, AbstractMutableComponentMetaDataLoader, AbstractMutableMetaDataLoader, AnnotatedElementMetaDataLoader, BasicMetaDataLoader, CachingMetaDataContext, MemoryMetaDataLoader, SimpleMetaDataLoader, ThreadLocalMetaDataLoader

public interface MetaDataRetrieval

MetaDataRetrieval.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Method Summary
 MetaDataRetrieval getComponentMetaDataRetrieval(Signature signature)
          Get the component metadata retrieval
 ScopeKey getScope()
          Return the scope key
 MetaDataRetrieval getScopedRetrieval(ScopeLevel level)
          Get scoped retrieval for level param.
 ValidTime getValidTime()
          The valid time
 boolean isEmpty()
          Is metadata empty.
<T extends Annotation>
AnnotationItem<T>
retrieveAnnotation(Class<T> annotationType)
          Get annotation
 AnnotationsItem retrieveAnnotations()
          Get all the annotations
 AnnotationsItem retrieveLocalAnnotations()
          Get all the local annotations
 MetaDatasItem retrieveLocalMetaData()
          Get all the local metadata
 MetaDatasItem retrieveMetaData()
          Get all the metadata
<T> MetaDataItem<T>
retrieveMetaData(Class<T> type)
          Get metadata
 MetaDataItem<?> retrieveMetaData(String name)
          Get metadata
 

Method Detail

getScope

ScopeKey getScope()
Return the scope key

Returns:
the scope key

getValidTime

ValidTime getValidTime()
The valid time

Returns:
the valid time

retrieveAnnotations

AnnotationsItem retrieveAnnotations()
Get all the annotations

Returns:
the annotations

retrieveLocalAnnotations

AnnotationsItem retrieveLocalAnnotations()
Get all the local annotations

Returns:
the annotations

retrieveAnnotation

<T extends Annotation> AnnotationItem<T> retrieveAnnotation(Class<T> annotationType)
Get annotation

Type Parameters:
T - the annotation type
Parameters:
annotationType - the annotation type
Returns:
the annotation or null if not present

retrieveMetaData

MetaDatasItem retrieveMetaData()
Get all the metadata

Returns:
the metadata

retrieveLocalMetaData

MetaDatasItem retrieveLocalMetaData()
Get all the local metadata

Returns:
the metadata

retrieveMetaData

<T> MetaDataItem<T> retrieveMetaData(Class<T> type)
Get metadata

Type Parameters:
T - the metadata type
Parameters:
type - the type
Returns:
the metadata or null if not present

retrieveMetaData

MetaDataItem<?> retrieveMetaData(String name)
Get metadata

Parameters:
name - the name of the meta data
Returns:
the metadata or null if not present

getComponentMetaDataRetrieval

MetaDataRetrieval getComponentMetaDataRetrieval(Signature signature)
Get the component metadata retrieval

Parameters:
signature - the signature
Returns:
the component metadata retrieval

isEmpty

boolean isEmpty()
Is metadata empty.

Returns:
true if metadata empty

getScopedRetrieval

MetaDataRetrieval getScopedRetrieval(ScopeLevel level)
Get scoped retrieval for level param.

Parameters:
level - the scope level
Returns:
list of retrieval instances


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.