play.data.binding
Class BeanWrapper
java.lang.Object
play.data.binding.BeanWrapper
public class BeanWrapper
- extends Object
Parameters map to POJO binder.
|
Method Summary |
Object |
bind(String name,
Type type,
Map<String,String[]> params,
String prefix)
|
Object |
bind(String name,
Type type,
Map<String,String[]> params,
String prefix,
Object instance)
|
Collection<BeanWrapper.Property> |
getWrappers()
|
protected Object |
newBeanInstance()
|
void |
set(String name,
Object instance,
Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanWrapper
public BeanWrapper(Class<?> forClass)
getWrappers
public Collection<BeanWrapper.Property> getWrappers()
bind
public Object bind(String name,
Type type,
Map<String,String[]> params,
String prefix)
throws Exception
- Throws:
Exception
bind
public Object bind(String name,
Type type,
Map<String,String[]> params,
String prefix,
Object instance)
throws Exception
- Throws:
Exception
set
public void set(String name,
Object instance,
Object value)
newBeanInstance
protected Object newBeanInstance()
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly