org.codehaus.waffle.bind.ognl
Class OgnlValueConverterFinder

java.lang.Object
  extended by org.codehaus.waffle.bind.ognl.OgnlValueConverterFinder
All Implemented Interfaces:
ValueConverterFinder

public class OgnlValueConverterFinder
extends java.lang.Object
implements ValueConverterFinder

Implementation of ValueConverterFinder which caches converters found per type and uses OgnlValueConverter as default converter.

Author:
Michael Ward, Mauro Talevi
See Also:
OgnlValueConverter

Constructor Summary
OgnlValueConverterFinder()
           
OgnlValueConverterFinder(ValueConverter... converters)
           
 
Method Summary
 ValueConverter findConverter(java.lang.Class<?> type)
          Should return the ValueConverter that is responsible for handling the type passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OgnlValueConverterFinder

public OgnlValueConverterFinder()

OgnlValueConverterFinder

public OgnlValueConverterFinder(ValueConverter... converters)
Method Detail

findConverter

public ValueConverter findConverter(java.lang.Class<?> type)
Description copied from interface: ValueConverterFinder
Should return the ValueConverter that is responsible for handling the type passed in.

Specified by:
findConverter in interface ValueConverterFinder
Parameters:
type - representing the ValueConverter needed
Returns:
the associated ValueConverter is returned or null if none was found.


Copyright © 2008. All Rights Reserved.