public abstract class AbstractMutableMetaDataLoader extends BasicMetaDataLoader implements MutableMetaDataLoader
The default behaviour is to assume there are only annotations with the types and names of the getMetadata() methods interprets as annotation types and class names.
Constructor and Description |
---|
AbstractMutableMetaDataLoader()
Create a new AbstractMutableMetaDataLoader.
|
AbstractMutableMetaDataLoader(boolean restricted)
Create a new AbstractMutableMetaDataLoader.
|
AbstractMutableMetaDataLoader(ScopeKey key)
Create a new AbstractMutableMetaDataLoader.
|
AbstractMutableMetaDataLoader(ScopeKey key,
boolean restricted)
Create a new AbstractMutableMetaDataLoader.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
addMetaData(String name,
T metaData,
Class<T> type)
Add metaData
|
<T> T |
addMetaData(T metaData,
Class<T> type)
Add metaData
|
void |
checkRestricted(Annotation annotation)
Check whether an annotation is retricted
|
void |
checkRestricted(Class<?> type)
Check whether an object is retricted
|
<T> T |
removeMetaData(Class<T> type)
Remove metaData
|
<T> T |
removeMetaData(String name,
Class<T> type)
Remove metadata
|
getComponentMetaDataRetrieval, retrieveAnnotation, retrieveMetaData
getScope, getScopedRetrieval, getValidTime, invalidate, isCachable, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCachable
getComponentMetaDataRetrieval, getScope, getScopedRetrieval, getValidTime, isEmpty, retrieveAnnotation, retrieveAnnotations, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData, retrieveMetaData
addAnnotation, removeAnnotation
public AbstractMutableMetaDataLoader()
public AbstractMutableMetaDataLoader(boolean restricted)
restricted
- whether the context is restrictedpublic AbstractMutableMetaDataLoader(ScopeKey key)
key
- the scope keypublic AbstractMutableMetaDataLoader(ScopeKey key, boolean restricted)
key
- the scope keyrestricted
- whether the context is restrictedpublic void checkRestricted(Annotation annotation)
annotation
- the annotationpublic void checkRestricted(Class<?> type)
type
- the typepublic <T> T addMetaData(T metaData, Class<T> type)
MutableMetaData
addMetaData
in interface MutableMetaData
T
- the metadata typemetaData
- the meta datatype
- the expected typepublic <T> T removeMetaData(Class<T> type)
MutableMetaData
removeMetaData
in interface MutableMetaData
T
- the metadata typetype
- the meta data typepublic <T> T addMetaData(String name, T metaData, Class<T> type)
MutableMetaData
addMetaData
in interface MutableMetaData
T
- the metadata typename
- the namemetaData
- the meta datatype
- the expected typepublic <T> T removeMetaData(String name, Class<T> type)
MutableMetaData
removeMetaData
in interface MutableMetaData
T
- the metadata typename
- the name of the meta datatype
- the expected type of the metadataCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.