org.jboss.webbeans
Class MetaDataCache

java.lang.Object
  extended by org.jboss.webbeans.MetaDataCache

public class MetaDataCache
extends java.lang.Object

Metadata singleton for holding EJB metadata, scope models etc.

Author:
Pete Muir

Constructor Summary
MetaDataCache()
           
 
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.
static MetaDataCache instance()
          Gets the singleton
 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()
Method Detail

instance

public static MetaDataCache instance()
Gets the singleton

Returns:
The instance

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 © 2008. All Rights Reserved.