public abstract class AbstractMutableComponentMetaDataLoader extends AbstractMutableMetaDataLoader implements ComponentMutableMetaData
Constructor and Description |
---|
AbstractMutableComponentMetaDataLoader()
Create a new AbstractMutableComponentMetaDataLoader.
|
AbstractMutableComponentMetaDataLoader(boolean restricted)
Create a new AbstractMutableComponentMetaDataLoader.
|
AbstractMutableComponentMetaDataLoader(ScopeKey key)
Create a new AbstractComponentMutableMetaDataLoader.
|
AbstractMutableComponentMetaDataLoader(ScopeKey key,
boolean restricted)
Create a new AbstractComponentMetaDataLoader.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
addAnnotation(org.jboss.reflect.spi.MemberInfo member,
T annotation)
Add a member annotation
|
<T extends Annotation> |
addAnnotation(Member member,
T annotation)
Add a component annotation
|
<T extends Annotation> |
addAnnotation(Signature signature,
T annotation)
Add a component annotation
|
MetaDataRetrieval |
addComponentMetaDataRetrieval(Signature signature,
MetaDataRetrieval component)
Add a component metadata
|
<T> T |
addMetaData(org.jboss.reflect.spi.MemberInfo member,
String name,
T metaData,
Class<T> type)
Add member metaData
|
<T> T |
addMetaData(org.jboss.reflect.spi.MemberInfo member,
T metaData,
Class<T> type)
Add member metaData
|
<T> T |
addMetaData(Member member,
String name,
T metaData,
Class<T> type)
Add member metaData
|
<T> T |
addMetaData(Member member,
T metaData,
Class<T> type)
Add member metaData
|
<T> T |
addMetaData(Signature signature,
String name,
T metaData,
Class<T> type)
Add member metaData
|
<T> T |
addMetaData(Signature signature,
T metaData,
Class<T> type)
Add member metaData
|
MetaDataRetrieval |
getComponentMetaDataRetrieval(Signature signature)
Get the component metadata retrieval
|
protected abstract MetaDataRetrieval |
initComponentRetrieval(Signature signature)
Initialise a component metadata retrieval
|
protected MutableMetaData |
initRetrieval(Signature signature)
Initialise the retrieval
|
boolean |
isEmpty()
Is metadata empty.
|
protected static boolean |
isNullOrEmpty(Map map)
Is map null or empty.
|
<T extends Annotation> |
removeAnnotation(Member member,
Class<T> annotationType)
Remove a member annotation
|
<T extends Annotation> |
removeAnnotation(org.jboss.reflect.spi.MemberInfo member,
Class<T> annotationType)
Remove a member annotation
|
<T extends Annotation> |
removeAnnotation(Signature signature,
Class<T> annotationType)
Remove a member annotation
|
MetaDataRetrieval |
removeComponentMetaDataRetrieval(Signature signature)
Remove a component metadata
|
<T> T |
removeMetaData(Member member,
Class<T> type)
Remove member metaData
|
<T> T |
removeMetaData(org.jboss.reflect.spi.MemberInfo member,
Class<T> type)
Remove member metaData
|
<T> T |
removeMetaData(org.jboss.reflect.spi.MemberInfo member,
String name,
Class<T> type)
Remove member metadata
|
<T> T |
removeMetaData(Member member,
String name,
Class<T> type)
Remove member metadata
|
<T> T |
removeMetaData(Signature signature,
Class<T> type)
Remove member metaData
|
<T> T |
removeMetaData(Signature signature,
String name,
Class<T> type)
Remove member metadata
|
addMetaData, addMetaData, checkRestricted, checkRestricted, removeMetaData, removeMetaData
retrieveAnnotation, retrieveMetaData
getScope, getScopedRetrieval, getValidTime, invalidate, isCachable, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCachable
getScope, getScopedRetrieval, getValidTime, retrieveAnnotation, retrieveAnnotations, retrieveAnnotationsAnnotatedWith, retrieveLocalAnnotations, retrieveLocalMetaData, retrieveMetaData, retrieveMetaData, retrieveMetaData
addAnnotation, removeAnnotation
public AbstractMutableComponentMetaDataLoader()
public AbstractMutableComponentMetaDataLoader(boolean restricted)
restricted
- whether items are restrictedpublic AbstractMutableComponentMetaDataLoader(ScopeKey key)
key
- the scope keypublic AbstractMutableComponentMetaDataLoader(ScopeKey key, boolean restricted)
key
- the scope keyrestricted
- whether the context is restrictedpublic boolean isEmpty()
MetaDataRetrieval
isEmpty
in interface MetaDataRetrieval
protected static boolean isNullOrEmpty(Map map)
map
- the mappublic MetaDataRetrieval addComponentMetaDataRetrieval(Signature signature, MetaDataRetrieval component)
ComponentMutableMetaData
addComponentMetaDataRetrieval
in interface ComponentMutableMetaData
signature
- the signaturecomponent
- the componentpublic MetaDataRetrieval removeComponentMetaDataRetrieval(Signature signature)
ComponentMutableMetaData
removeComponentMetaDataRetrieval
in interface ComponentMutableMetaData
signature
- the signaturepublic MetaDataRetrieval getComponentMetaDataRetrieval(Signature signature)
MetaDataRetrieval
getComponentMetaDataRetrieval
in interface MetaDataRetrieval
getComponentMetaDataRetrieval
in class BasicMetaDataLoader
signature
- the signatureprotected MutableMetaData initRetrieval(Signature signature)
signature
- the signatureprotected abstract MetaDataRetrieval initComponentRetrieval(Signature signature)
signature
- the signaturepublic <T extends Annotation> T addAnnotation(Signature signature, T annotation)
ComponentMutableMetaData
addAnnotation
in interface ComponentMutableMetaData
T
- the annotation typesignature
- the signatureannotation
- the annotationpublic <T> T addMetaData(Signature signature, String name, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typesignature
- the signaturename
- the namemetaData
- the meta datatype
- the expected typepublic <T> T addMetaData(Signature signature, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typesignature
- the signaturemetaData
- the meta datatype
- the expected typepublic <T extends Annotation> T removeAnnotation(Signature signature, Class<T> annotationType)
ComponentMutableMetaData
removeAnnotation
in interface ComponentMutableMetaData
T
- the annotation typesignature
- the signatureannotationType
- the annotation typepublic <T> T removeMetaData(Signature signature, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typesignature
- the signaturetype
- the meta data typepublic <T> T removeMetaData(Signature signature, String name, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typesignature
- the signaturename
- the name of the meta datatype
- the expected type of the metadatapublic <T extends Annotation> T addAnnotation(Member member, T annotation)
ComponentMutableMetaData
addAnnotation
in interface ComponentMutableMetaData
T
- the annotation typemember
- memberannotation
- the annotationpublic <T extends Annotation> T addAnnotation(org.jboss.reflect.spi.MemberInfo member, T annotation)
ComponentMutableMetaData
addAnnotation
in interface ComponentMutableMetaData
T
- the annotation typemember
- memberannotation
- the annotationpublic <T> T addMetaData(Member member, String name, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membername
- the namemetaData
- the meta datatype
- the expected typepublic <T> T addMetaData(Member member, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membermetaData
- the meta datatype
- the expected typepublic <T> T addMetaData(org.jboss.reflect.spi.MemberInfo member, String name, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membername
- the namemetaData
- the meta datatype
- the expected typepublic <T> T addMetaData(org.jboss.reflect.spi.MemberInfo member, T metaData, Class<T> type)
ComponentMutableMetaData
addMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membermetaData
- the meta datatype
- the expected typepublic <T extends Annotation> T removeAnnotation(Member member, Class<T> annotationType)
ComponentMutableMetaData
removeAnnotation
in interface ComponentMutableMetaData
T
- the annotation typemember
- memberannotationType
- the annotation typepublic <T extends Annotation> T removeAnnotation(org.jboss.reflect.spi.MemberInfo member, Class<T> annotationType)
ComponentMutableMetaData
removeAnnotation
in interface ComponentMutableMetaData
T
- the annotation typemember
- memberannotationType
- the annotation typepublic <T> T removeMetaData(Member member, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membertype
- the meta data typepublic <T> T removeMetaData(Member member, String name, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membername
- the name of the meta datatype
- the expected type of the metadatapublic <T> T removeMetaData(org.jboss.reflect.spi.MemberInfo member, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membertype
- the meta data typepublic <T> T removeMetaData(org.jboss.reflect.spi.MemberInfo member, String name, Class<T> type)
ComponentMutableMetaData
removeMetaData
in interface ComponentMutableMetaData
T
- the metadata typemember
- membername
- the name of the meta datatype
- the expected type of the metadataCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.