biz.hammurapi.convert
Class ContextConverterFactory

java.lang.Object
  extended by biz.hammurapi.convert.ContextConverterFactory

public class ContextConverterFactory
extends java.lang.Object

Creates converters from Context and MutableContext to interfaces which have only setters and getters (beans)

Author:
Pavel

Constructor Summary
ContextConverterFactory()
           
 
Method Summary
static Converter getConverter(java.lang.Class sourceClass, java.lang.Class targetInterface)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextConverterFactory

public ContextConverterFactory()
Method Detail

getConverter

public static Converter getConverter(java.lang.Class sourceClass,
                                     java.lang.Class targetInterface)
Parameters:
sourceClass -
targetInterface -
Returns:
Converter which can "duck-type" instance of source class to target interface or null if conversion is not possible. Methods are mapped as follows: return types shall be compatible, arguments shall be compatible, exception declarations are ignored.

main

public static void main(java.lang.String[] args)


Copyright © 2003 Hammurapi Group. All Rights Reserved.