org.jboss.weld.metadata.cache
Class MetaAnnotationStore

java.lang.Object
  extended by 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
MetaAnnotationStore(ClassTransformer classTransformer)
           
 
Method Summary
 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)
           
<T extends Annotation>
ScopeModel<T>
getScopeModel(Class<T> scope)
          Gets a scope model

Adds the model if it is not present.

<T extends Annotation>
StereotypeModel<T>
getStereotype(Class<T> stereotype)
          Gets a stereotype model

Adds the model if it is not present.

 String toString()
          Gets a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

toString

public String toString()
Gets a string representation

Overrides:
toString in class Object
Returns:
A string representation

cleanup

public void cleanup()
Specified by:
cleanup in interface org.jboss.weld.bootstrap.api.Service

getInterceptorBindingModel

public <T extends Annotation> InterceptorBindingModel<T> getInterceptorBindingModel(Class<T> interceptorBinding)


Copyright © 2013 Seam Framework. All Rights Reserved.