|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.data.binding.Binder
public abstract class Binder
The binder try to convert String values to Java objects.
Nested Class Summary | |
---|---|
static class |
Binder.MethodAndParamInfo
|
Field Summary | |
---|---|
static java.lang.Object |
MISSING
|
static java.lang.Object |
NO_BINDING
|
Constructor Summary | |
---|---|
Binder()
|
Method Summary | ||
---|---|---|
static java.lang.Object |
bind(java.lang.Object o,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String[]> params)
Deprecated. |
|
static java.lang.Object |
bind(RootParamNode parentParamNode,
java.lang.String name,
java.lang.Class<?> clazz,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
|
|
static java.lang.Object |
bind(RootParamNode parentParamNode,
java.lang.String name,
java.lang.Class<?> clazz,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
Binder.MethodAndParamInfo methodAndParamInfo)
|
|
static java.lang.Object |
bind(java.lang.String name,
java.lang.Class<?> clazz,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
java.util.Map<java.lang.String,java.lang.String[]> params)
Deprecated. |
|
static void |
bindBean(ParamNode paramNode,
java.lang.Object bean,
java.lang.annotation.Annotation[] annotations)
Does NOT invoke plugins |
|
static void |
bindBean(RootParamNode rootParamNode,
java.lang.String name,
java.lang.Object bean)
Invokes the plugins before using the internal bindBean. |
|
static java.lang.Object |
directBind(java.lang.annotation.Annotation[] annotations,
java.lang.String value,
java.lang.Class<?> clazz,
java.lang.reflect.Type type)
|
|
static java.lang.Object |
directBind(java.lang.String name,
java.lang.annotation.Annotation[] annotations,
java.lang.String value,
java.lang.Class<?> clazz)
|
|
static java.lang.Object |
directBind(java.lang.String name,
java.lang.annotation.Annotation[] annotations,
java.lang.String value,
java.lang.Class<?> clazz,
java.lang.reflect.Type type)
This method calls the user's defined binders prior to bind simple type |
|
static java.lang.Object |
directBind(java.lang.String value,
java.lang.Class<?> clazz)
|
|
protected static java.lang.Object |
internalBind(ParamNode paramNode,
java.lang.Class<?> clazz,
java.lang.reflect.Type type,
play.data.binding.BindingAnnotations bindingAnnotations)
|
|
static
|
register(java.lang.Class<T> clazz,
TypeBinder<T> typeBinder)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Object MISSING
public static final java.lang.Object NO_BINDING
Constructor Detail |
---|
public Binder()
Method Detail |
---|
public static <T> void register(java.lang.Class<T> clazz, TypeBinder<T> typeBinder)
@Deprecated public static java.lang.Object bind(java.lang.Object o, java.lang.String name, java.util.Map<java.lang.String,java.lang.String[]> params)
@Deprecated public static java.lang.Object bind(java.lang.String name, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, java.util.Map<java.lang.String,java.lang.String[]> params)
public static java.lang.Object bind(RootParamNode parentParamNode, java.lang.String name, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations)
public static java.lang.Object bind(RootParamNode parentParamNode, java.lang.String name, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, Binder.MethodAndParamInfo methodAndParamInfo)
protected static java.lang.Object internalBind(ParamNode paramNode, java.lang.Class<?> clazz, java.lang.reflect.Type type, play.data.binding.BindingAnnotations bindingAnnotations)
public static void bindBean(RootParamNode rootParamNode, java.lang.String name, java.lang.Object bean)
public static void bindBean(ParamNode paramNode, java.lang.Object bean, java.lang.annotation.Annotation[] annotations) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object directBind(java.lang.String value, java.lang.Class<?> clazz) throws java.lang.Exception
value
- clazz
-
java.lang.Exception
public static java.lang.Object directBind(java.lang.String name, java.lang.annotation.Annotation[] annotations, java.lang.String value, java.lang.Class<?> clazz) throws java.lang.Exception
name
- annotations
- value
- clazz
- type
-
java.lang.Exception
public static java.lang.Object directBind(java.lang.annotation.Annotation[] annotations, java.lang.String value, java.lang.Class<?> clazz, java.lang.reflect.Type type) throws java.lang.Exception
annotations
- value
- clazz
- type
-
java.lang.Exception
public static java.lang.Object directBind(java.lang.String name, java.lang.annotation.Annotation[] annotations, java.lang.String value, java.lang.Class<?> clazz, java.lang.reflect.Type type) throws java.lang.Exception
name
- annotations
- value
- clazz
- type
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |