public static final class As.DEFAULT extends Object implements TypeBinder<Object>, TypeUnbinder<Object>
Constructor and Description |
---|
DEFAULT() |
Modifier and Type | Method and Description |
---|---|
Object |
bind(String name,
Annotation[] annotations,
String value,
Class actualClass,
Type genericType)
Called when your parameter needs to be bound.
|
boolean |
unBind(Map<String,Object> result,
Object src,
Class<?> srcClazz,
String name,
Annotation[] annotations) |
public Object bind(String name, Annotation[] annotations, String value, Class actualClass, Type genericType)
TypeBinder
bind
in interface TypeBinder<Object>
name
- the name of you parameter ie myparam for a simple param but can also be a complex one : mybean.address.streetannotations
- An array of annotation that may be bound to your method parameter or your bean propertyvalue
- the actual value as a string that needs to be boundactualClass
- The class of the object you want to associate the value withgenericType
- The generic type associated with the object you want to bound the value topublic boolean unBind(Map<String,Object> result, Object src, Class<?> srcClazz, String name, Annotation[] annotations) throws Exception
unBind
in interface TypeUnbinder<Object>
src
- the object you want to unbindsrcClazz
- The class of the object you want to associate the value withname
- the name of you parameter ie myparam for a simple param but can also be a complex one : mybean.address.streetannotations
- An array of annotation that may be bound to your method parameter or your bean propertyException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly