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