|
JBoss MetaData Repository 2.2.0.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.plugins.loader.AbstractMetaDataLoader
org.jboss.metadata.plugins.loader.BasicMetaDataLoader
org.jboss.metadata.plugins.loader.AbstractMutableMetaDataLoader
public abstract class AbstractMutableMetaDataLoader
AbstractMutableMetaDataLoader.
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 Summary | |
---|---|
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. |
Method Summary | ||
---|---|---|
|
addMetaData(String name,
T metaData,
Class<T> type)
Add metaData |
|
|
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 |
|
|
removeMetaData(Class<T> type)
Remove metaData |
|
|
removeMetaData(String name,
Class<T> type)
Remove metadata |
Methods inherited from class org.jboss.metadata.plugins.loader.BasicMetaDataLoader |
---|
getComponentMetaDataRetrieval, retrieveAnnotation, retrieveMetaData |
Methods inherited from class org.jboss.metadata.plugins.loader.AbstractMetaDataLoader |
---|
getScope, getScopedRetrieval, getValidTime, invalidate, isCachable, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.metadata.spi.loader.MetaDataLoader |
---|
isCachable |
Methods inherited from interface org.jboss.metadata.spi.retrieval.MetaDataRetrieval |
---|
getComponentMetaDataRetrieval, getScope, getScopedRetrieval, getValidTime, isEmpty, retrieveAnnotation, retrieveAnnotations, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData, retrieveMetaData |
Methods inherited from interface org.jboss.metadata.spi.MutableMetaData |
---|
addAnnotation, removeAnnotation |
Constructor Detail |
---|
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 restrictedMethod Detail |
---|
public 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 type
public <T> T removeMetaData(Class<T> type)
MutableMetaData
removeMetaData
in interface MutableMetaData
T
- the metadata typetype
- the meta data type
public <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 type
public <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 metadata
|
JBoss MetaData Repository 2.2.0.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |