play.data.binding
Class BeanWrapper

java.lang.Object
  extended by play.data.binding.BeanWrapper

public class BeanWrapper
extends Object

Parameters map to POJO binder.


Nested Class Summary
static class BeanWrapper.Property
           
 
Constructor Summary
BeanWrapper(Class<?> forClass)
           
 
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
 

Constructor Detail

BeanWrapper

public BeanWrapper(Class<?> forClass)
Method Detail

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