com.caucho.amber.type
Class TypeManager

java.lang.Object
  extended by com.caucho.amber.type.TypeManager

public class TypeManager
extends java.lang.Object

The manages the types known to the Amber instnce.


Constructor Summary
TypeManager()
           
 
Method Summary
 AmberType create(java.lang.Class cl)
          Returns the type.
 AmberType create(java.lang.String name)
          Returns the type.
 AmberType get(java.lang.String name)
          Returns the type.
 EntityType getEntityByInstanceClass(java.lang.String name)
          Returns the type.
 java.util.HashMap<java.lang.String,AmberType> getTypeMap()
          Returns the type map.
 void put(java.lang.String name, AmberType type)
          Adds a type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeManager

public TypeManager()
Method Detail

create

public AmberType create(java.lang.String name)
                 throws ConfigException
Returns the type.

Throws:
ConfigException

create

public AmberType create(java.lang.Class cl)
                 throws ConfigException
Returns the type.

Throws:
ConfigException

get

public AmberType get(java.lang.String name)
Returns the type.


getEntityByInstanceClass

public EntityType getEntityByInstanceClass(java.lang.String name)
Returns the type.


getTypeMap

public java.util.HashMap<java.lang.String,AmberType> getTypeMap()
Returns the type map.


put

public void put(java.lang.String name,
                AmberType type)
Adds a type.