public static final class As.DEFAULT extends java.lang.Object implements TypeBinder<java.lang.Object>, TypeUnbinder<java.lang.Object>
| Constructor and Description |
|---|
DEFAULT() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
bind(java.lang.String name,
java.lang.annotation.Annotation[] annotations,
java.lang.String value,
java.lang.Class actualClass,
java.lang.reflect.Type genericType)
Called when your parameter needs to be bound.
|
boolean |
unBind(java.util.Map<java.lang.String,java.lang.Object> result,
java.lang.Object src,
java.lang.Class<?> srcClazz,
java.lang.String name,
java.lang.annotation.Annotation[] annotations) |
public java.lang.Object bind(java.lang.String name,
java.lang.annotation.Annotation[] annotations,
java.lang.String value,
java.lang.Class actualClass,
java.lang.reflect.Type genericType)
TypeBinderbind in interface TypeBinder<java.lang.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(java.util.Map<java.lang.String,java.lang.Object> result,
java.lang.Object src,
java.lang.Class<?> srcClazz,
java.lang.String name,
java.lang.annotation.Annotation[] annotations)
throws java.lang.Exception
unBind in interface TypeUnbinder<java.lang.Object>result - The result containersrc - 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 propertyjava.lang.Exception - if problem occurredGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly