Package org.jboss.weld.metadata.cache
Class MetaAnnotationStore
java.lang.Object
org.jboss.weld.metadata.cache.MetaAnnotationStore
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
Metadata singleton for holding EJB metadata, scope models etc.
- Author:
- Pete Muir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidclearAnnotationData(Class<? extends Annotation> annotationClass) removes all data for an annotation class.<T extends Annotation>
QualifierModel<T>getBindingTypeModel(Class<T> bindingType) Gets a binding type model.<T extends Annotation>
InterceptorBindingModel<T>getInterceptorBindingModel(Class<T> interceptorBinding) getQualifierInstance(Annotation annotation) getQualifierInstances(jakarta.enterprise.inject.spi.Bean<?> bean) getQualifierInstances(Set<Annotation> annotations) <T extends Annotation>
ScopeModel<T>getScopeModel(Class<T> scope) Gets a scope model<T extends Annotation>
StereotypeModel<T>getStereotype(Class<T> stereotype) Gets a stereotype modeltoString()Gets a string representation
-
Constructor Details
-
MetaAnnotationStore
-
-
Method Details
-
clearAnnotationData
removes all data for an annotation class. This should be called after an annotation has been modified through the SPI -
getStereotype
Gets a stereotype model Adds the model if it is not present.- Type Parameters:
T- The type- Parameters:
stereotype- The stereotype- Returns:
- The stereotype model
-
getScopeModel
Gets a scope model Adds the model if it is not present.- Type Parameters:
T- The type- Parameters:
scope- The scope type- Returns:
- The scope type model
-
getBindingTypeModel
Gets a binding type model. Adds the model if it is not present.- Type Parameters:
T- The type- Parameters:
bindingType- The binding type- Returns:
- The binding type model
-
getInterceptorBindingModel
public <T extends Annotation> InterceptorBindingModel<T> getInterceptorBindingModel(Class<T> interceptorBinding) - Parameters:
interceptorBinding-- Returns:
-
getQualifierInstance
- Parameters:
annotation-- Returns:
- the qualifier instance for the given annotation, uses cache if possible
-
getQualifierInstances
- Parameters:
bean-- Returns:
- the set of qualifier instances for the given bean, uses caches if possible
-
getQualifierInstances
- Parameters:
annotations-- Returns:
- the set of qualifier instances, uses caches if possible
-
toString
Gets a string representation -
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-