public abstract class AbstractMetaDataLoader extends Object implements MetaDataLoader
The default behaviour is to assume there are only annotations with the types and names of the getMetadata() methods interpreted as annotation types and class names.
Constructor and Description |
---|
AbstractMetaDataLoader()
Create a new AbstractMetaDataLoader.
|
AbstractMetaDataLoader(ScopeKey key)
Create a new AbstractMetaDataLoader.
|
Modifier and Type | Method and Description |
---|---|
ScopeKey |
getScope()
Return the scope key
|
MetaDataRetrieval |
getScopedRetrieval(ScopeLevel level)
Get scoped retrieval for level param.
|
ValidTime |
getValidTime()
The valid time
|
void |
invalidate()
Invalidate
|
<T> boolean |
isCachable(Item<T> item)
Whether the item is cachable
|
AnnotationsItem |
retrieveAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
Get all the annotations annotated with the given meta annotation
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentMetaDataRetrieval, isEmpty, retrieveAnnotation, retrieveAnnotations
public AbstractMetaDataLoader()
public AbstractMetaDataLoader(ScopeKey key)
key
- the scopepublic ScopeKey getScope()
MetaDataRetrieval
getScope
in interface MetaDataRetrieval
public ValidTime getValidTime()
MetaDataRetrieval
getValidTime
in interface MetaDataRetrieval
public <T> boolean isCachable(Item<T> item)
MetaDataLoader
isCachable
in interface MetaDataLoader
T
- the item typeitem
- the itempublic AnnotationsItem retrieveLocalAnnotations()
MetaDataRetrieval
retrieveLocalAnnotations
in interface MetaDataRetrieval
public AnnotationsItem retrieveAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
MetaDataRetrieval
retrieveAnnotationsAnnotatedWith
in interface MetaDataRetrieval
meta
- the meta annotationpublic <T> MetaDataItem<T> retrieveMetaData(Class<T> type)
MetaDataRetrieval
retrieveMetaData
in interface MetaDataRetrieval
T
- the metadata typetype
- the typepublic MetaDatasItem retrieveLocalMetaData()
MetaDataRetrieval
retrieveLocalMetaData
in interface MetaDataRetrieval
public MetaDatasItem retrieveMetaData()
MetaDataRetrieval
retrieveMetaData
in interface MetaDataRetrieval
public MetaDataItem<?> retrieveMetaData(String name)
MetaDataRetrieval
retrieveMetaData
in interface MetaDataRetrieval
name
- the name of the meta datapublic MetaDataRetrieval getScopedRetrieval(ScopeLevel level)
MetaDataRetrieval
getScopedRetrieval
in interface MetaDataRetrieval
level
- the scope levelpublic void invalidate()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.