public class SimpleBindingProcessorConfig extends Object
Constructor and Description |
---|
SimpleBindingProcessorConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected Map<Class<?>,Converter<?>> |
getConverters() |
int |
hashCode() |
<T> SimpleBindingProcessorConfig |
setConverter(Class<T> forClass,
Converter<T> converter)
Sets a Converter for the given Class.
|
public <T> SimpleBindingProcessorConfig setConverter(Class<T> forClass, Converter<T> converter)
Converters also apply to subclasses of the given Class. So for example registering a
Converter for Number.class
will match Integer.class
,
Double.class
etc., unless a more subclass-specific Converter is also registered.
Note: this is not a JavaBean 'setter': multiple different Converters can be set by calling
setConverter
multiple times with different source classes.
Copyright © 2015. All Rights Reserved.