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) |
public static final Object MISSING
public static final Object NO_BINDING
public static <T> void register(Class<T> clazz, TypeBinder<T> typeBinder)
@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) throws Exception
Exceptionpublic static Object directBind(String value, Class<?> clazz) throws Exception
value - clazz - Exceptionpublic static Object directBind(String name, Annotation[] annotations, String value, Class<?> clazz) throws Exception
name - annotations - value - clazz - Exceptionpublic static Object directBind(Annotation[] annotations, String value, Class<?> clazz, Type type) throws Exception
annotations - value - clazz - type - Exceptionpublic static Object directBind(String name, Annotation[] annotations, String value, Class<?> clazz, Type type) throws Exception
name - annotations - value - clazz - type - ExceptionGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly