20080913, rgf

org.apache.bsf.util.type
Class TypeConvertorRegistry

java.lang.Object
  extended byorg.apache.bsf.util.type.TypeConvertorRegistry

public class TypeConvertorRegistry
extends java.lang.Object

The TypeConvertorRegistry is the registry of type convertors. It has lookup and register capabilities based on the types to be converted as well as by some object key.

Author:
Sanjiva Weerawarana, Matthew J. Duftler
See Also:
TypeConvertorRegistry

Field Summary
(package private)  java.util.Hashtable keyedReg
           
(package private)  java.util.Hashtable reg
           
 
Constructor Summary
TypeConvertorRegistry()
           
 
Method Summary
 TypeConvertor lookup(java.lang.Class from, java.lang.Class to)
           
 TypeConvertor lookupByKey(java.lang.Object key)
           
 void register(java.lang.Class from, java.lang.Class to, TypeConvertor convertor)
           
 void registerByKey(java.lang.Object key, TypeConvertor convertor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reg

java.util.Hashtable reg

keyedReg

java.util.Hashtable keyedReg
Constructor Detail

TypeConvertorRegistry

public TypeConvertorRegistry()
Method Detail

lookup

public TypeConvertor lookup(java.lang.Class from,
                            java.lang.Class to)

lookupByKey

public TypeConvertor lookupByKey(java.lang.Object key)

register

public void register(java.lang.Class from,
                     java.lang.Class to,
                     TypeConvertor convertor)

registerByKey

public void registerByKey(java.lang.Object key,
                          TypeConvertor convertor)

20080913, rgf