public class DateTimeBinder extends Object implements TypeBinder<org.joda.time.DateTime>
Constructor and Description |
---|
DateTimeBinder() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
bind(String name,
Annotation[] annotations,
String value,
Class actualClass,
Type genericType)
Called when your parameter needs to be bound.
|
public org.joda.time.DateTime bind(String name, Annotation[] annotations, String value, Class actualClass, Type genericType) throws Exception
TypeBinder
bind
in interface TypeBinder<org.joda.time.DateTime>
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 toParseException
- if parameter has invalid format (e.g. date)Exception
- deprecated! Will be removed in Play 1.5Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly