org.jboss.webbeans.metadata
Class MetaDataCache

java.lang.Object
  extended by org.jboss.webbeans.metadata.MetaDataCache
All Implemented Interfaces:
Service

public class MetaDataCache
extends java.lang.Object
implements Service

Metadata singleton for holding EJB metadata, scope models etc.

Author:
Pete Muir

Constructor Summary
MetaDataCache(ClassTransformer classTransformer)
           
 
Method Summary
<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>
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

MetaDataCache

public MetaDataCache(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


Copyright © 2011. All Rights Reserved.