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 uses OgnlValueConverter as default converter.

Converters can be either injected at instantiation or registered after instantiation.

Author:
Michael Ward, Mauro Talevi
See Also:
OgnlValueConverter

Constructor Summary
OgnlValueConverterFinder()
           
OgnlValueConverterFinder(ValueConverter... converters)
           
 
Method Summary
 ValueConverter findConverter(java.lang.reflect.Type type)
          Returns the converter that is responsible for handling the type passed in.
 void registerConverter(ValueConverter converter)
          Registers the given converter
 
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.reflect.Type type)
Description copied from interface: ValueConverterFinder
Returns the converter that is responsible for handling the type passed in.

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

registerConverter

public void registerConverter(ValueConverter converter)
Description copied from interface: ValueConverterFinder
Registers the given converter

Specified by:
registerConverter in interface ValueConverterFinder
Parameters:
converter - the ValueConverter to register


Copyright © 2008. All Rights Reserved.