Package org.apache.bsf.util.type

# Class TypeConvertorRegistry

java.lang.Object
org.apache.bsf.util.type.TypeConvertorRegistry

public class TypeConvertorRegistry extends 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`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TypeConvertorRegistry()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TypeConvertor`
  `lookup(Class from, Class to)`
  `TypeConvertor`
  `lookupByKey(Object key)`
  `void`
  `register(Class from, Class to, TypeConvertor convertor)`
  `void`
  `registerByKey(Object key, TypeConvertor convertor)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TypeConvertorRegistry

    public TypeConvertorRegistry()

- ## Method Details

  - ### lookup

    public TypeConvertor lookup(Class from, Class to)

  - ### lookupByKey

    public TypeConvertor lookupByKey(Object key)

  - ### register

    public void register(Class from, Class to, TypeConvertor convertor)

  - ### registerByKey

    public void registerByKey(Object key, TypeConvertor convertor)