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 java.lang.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()
           
<T extends java.lang.annotation.Annotation>
BindingTypeModel<T>
getBindingTypeModel(java.lang.Class<T> bindingType)
          Gets a binding type model.
<T extends java.lang.annotation.Annotation>
InterceptorBindingModel
getInterceptorBindingModel(java.lang.Class<T> interceptorBinding)
           
<T extends java.lang.annotation.Annotation>
ScopeModel<T>
getScopeModel(java.lang.Class<T> scopeType)
          Gets a scope model Adds the model if it is not present.
<T extends java.lang.annotation.Annotation>
StereotypeModel<T>
getStereotype(java.lang.Class<T> stereotype)
          Gets a stereotype model Adds the model if it is not present.
 java.lang.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

getStereotype

public <T extends java.lang.annotation.Annotation> StereotypeModel<T> getStereotype(java.lang.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 java.lang.annotation.Annotation> ScopeModel<T> getScopeModel(java.lang.Class<T> scopeType)
Gets a scope model Adds the model if it is not present.

Type Parameters:
T - The type
Parameters:
scopeType - The scope type
Returns:
The scope type model

getBindingTypeModel

public <T extends java.lang.annotation.Annotation> BindingTypeModel<T> getBindingTypeModel(java.lang.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 java.lang.String toString()
Gets a string representation

Overrides:
toString in class java.lang.Object
Returns:
A string representation

cleanup

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

getInterceptorBindingModel

public <T extends java.lang.annotation.Annotation> InterceptorBindingModel getInterceptorBindingModel(java.lang.Class<T> interceptorBinding)


Copyright © 2008-2009 Seam Framework. All Rights Reserved.