public class DataBinder extends Object implements BinderFactoryContext
| Constructor and Description |
|---|
DataBinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinderFactory(BinderFactory factory) |
<T> Binder<T> |
getBinder(Class<T> type) |
Binder<?> |
getBinder(Type type)
Get a binder that may encode and decode the given type.
|
Binder<?> |
getBinder(Type type,
AnnotatedElement metaElement) |
Binder<?> |
getBinder(Type type,
List<Annotation> annotations) |
Binder<Object> |
getDefaultBinder() |
Binder<?> |
getDefaultDecodeBinder(TypeDefinition typeDefinition)
Get a binder that may decode (not necessarily encode to!) the given type.
|
Binder<?> |
getDefaultEncodeBinder(Type type)
Get a binder that may encode (not necessarily decode to!) the given type.
|
public void addBinderFactory(BinderFactory factory)
public Binder<?> getBinder(Type type, AnnotatedElement metaElement)
public Binder<?> getBinder(Type type, List<Annotation> annotations)
public Binder<?> getBinder(Type type)
BinderFactoryContextgetBinder in interface BinderFactoryContextpublic Binder<?> getDefaultEncodeBinder(Type type)
BinderFactoryContextgetDefaultEncodeBinder in interface BinderFactoryContextpublic Binder<?> getDefaultDecodeBinder(TypeDefinition typeDefinition)
BinderFactoryContextgetDefaultDecodeBinder in interface BinderFactoryContextCopyright © 2017. All rights reserved.