com.teraspaces.qwframework
Class QWTypeManager

java.lang.Object
  extended by com.teraspaces.qwframework.QWTypeManager

public final class QWTypeManager
extends Object

Manages a global repository of cross programming language interoperable types.


Constructor Summary
QWTypeManager()
           
 
Method Summary
static void addType(Class<?> type)
          Adds the a type into the manager.
static boolean containsType(Class<?> type)
          Gets a value indicating whether a type is registered.
static Class<?> getType(String name)
          Gets a cross programming language interoperable type by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QWTypeManager

public QWTypeManager()
Method Detail

addType

public static void addType(Class<?> type)
Adds the a type into the manager.

Parameters:
type - the type

getType

public static Class<?> getType(String name)
Gets a cross programming language interoperable type by name.

Parameters:
name - the name
Returns:
the type

containsType

public static boolean containsType(Class<?> type)
Gets a value indicating whether a type is registered.

Parameters:
type - the type
Returns:
true, if register; otherwise false