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
public class MetaAnnotationStore extends Object implements org.jboss.weld.bootstrap.api.Service
Metadata singleton for holding EJB metadata, scope models etc.- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description MetaAnnotationStore(ClassTransformer classTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
clearAnnotationData(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)
QualifierInstance
getQualifierInstance(Annotation annotation)
Set<QualifierInstance>
getQualifierInstances(jakarta.enterprise.inject.spi.Bean<?> bean)
Set<QualifierInstance>
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 modelString
toString()
Gets a string representation
-
-
-
Constructor Detail
-
MetaAnnotationStore
public MetaAnnotationStore(ClassTransformer classTransformer)
-
-
Method Detail
-
clearAnnotationData
public void clearAnnotationData(Class<? extends Annotation> annotationClass)
removes all data for an annotation class. This should be called after an annotation has been modified through the SPI
-
getStereotype
public <T extends Annotation> StereotypeModel<T> getStereotype(Class<T> stereotype)
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
public <T extends Annotation> ScopeModel<T> getScopeModel(Class<T> scope)
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
public <T extends Annotation> QualifierModel<T> getBindingTypeModel(Class<T> bindingType)
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
public QualifierInstance getQualifierInstance(Annotation annotation)
- Parameters:
annotation
-- Returns:
- the qualifier instance for the given annotation, uses cache if possible
-
getQualifierInstances
public Set<QualifierInstance> getQualifierInstances(jakarta.enterprise.inject.spi.Bean<?> bean)
- Parameters:
bean
-- Returns:
- the set of qualifier instances for the given bean, uses caches if possible
-
getQualifierInstances
public Set<QualifierInstance> getQualifierInstances(Set<Annotation> annotations)
- Parameters:
annotations
-- Returns:
- the set of qualifier instances, uses caches if possible
-
toString
public String toString()
Gets a string representation
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
-