public abstract class Binder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Binder.MethodAndParamInfo |
Modifier and Type | Field and Description |
---|---|
static Object |
MISSING |
static Object |
NO_BINDING |
Constructor and Description |
---|
Binder() |
Modifier and Type | Method and Description |
---|---|
static Object |
bind(Object o,
String name,
Map<String,String[]> params)
Deprecated.
|
static Object |
bind(RootParamNode parentParamNode,
String name,
Class<?> clazz,
Type type,
Annotation[] annotations) |
static Object |
bind(RootParamNode parentParamNode,
String name,
Class<?> clazz,
Type type,
Annotation[] annotations,
Binder.MethodAndParamInfo methodAndParamInfo) |
static Object |
bind(String name,
Class<?> clazz,
Type type,
Annotation[] annotations,
Map<String,String[]> params)
Deprecated.
|
static void |
bindBean(ParamNode paramNode,
Object bean,
Annotation[] annotations)
Does NOT invoke plugins
|
static void |
bindBean(RootParamNode rootParamNode,
String name,
Object bean)
Invokes the plugins before using the internal bindBean.
|
static Object |
directBind(Annotation[] annotations,
String value,
Class<?> clazz,
Type type) |
static Object |
directBind(String name,
Annotation[] annotations,
String value,
Class<?> clazz) |
static Object |
directBind(String name,
Annotation[] annotations,
String value,
Class<?> clazz,
Type type)
This method calls the user's defined binders prior to bind simple type
|
static Object |
directBind(String value,
Class<?> clazz) |
protected static Object |
internalBind(ParamNode paramNode,
Class<?> clazz,
Type type,
BindingAnnotations bindingAnnotations) |
static <T> void |
register(Class<T> clazz,
TypeBinder<T> typeBinder)
Add custom binder for any given class
E.g.
|
static <T> void |
unregister(Class<T> clazz)
Remove custom binder that was add with method #register(java.lang.Class, play.data.binding.TypeBinder)
|
public static final Object MISSING
public static final Object NO_BINDING
public static <T> void register(Class<T> clazz, TypeBinder<T> typeBinder)
unregister(java.lang.Class)
public static <T> void unregister(Class<T> clazz)
@Deprecated public static Object bind(Object o, String name, Map<String,String[]> params)
@Deprecated public static Object bind(String name, Class<?> clazz, Type type, Annotation[] annotations, Map<String,String[]> params)
public static Object bind(RootParamNode parentParamNode, String name, Class<?> clazz, Type type, Annotation[] annotations)
public static Object bind(RootParamNode parentParamNode, String name, Class<?> clazz, Type type, Annotation[] annotations, Binder.MethodAndParamInfo methodAndParamInfo)
protected static Object internalBind(ParamNode paramNode, Class<?> clazz, Type type, BindingAnnotations bindingAnnotations)
public static void bindBean(RootParamNode rootParamNode, String name, Object bean)
public static void bindBean(ParamNode paramNode, Object bean, Annotation[] annotations)
public static Object directBind(String value, Class<?> clazz) throws Exception
Exception
public static Object directBind(String name, Annotation[] annotations, String value, Class<?> clazz) throws Exception
Exception
public static Object directBind(Annotation[] annotations, String value, Class<?> clazz, Type type) throws Exception
Exception
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly