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 ConverterClosure getConverter(java.lang.Class sourceClass, java.lang.Class targetInterface)
           
 
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 ConverterClosure 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.


Copyright © 2003 Hammurapi Group. All Rights Reserved.