org.codehaus.groovy.grails.plugins.web.api
Class ControllersDomainBindingApi

java.lang.Object
  extended by org.codehaus.groovy.grails.plugins.web.api.ControllersDomainBindingApi

public class ControllersDomainBindingApi
extends java.lang.Object

Enhancements made to domain classes to for data binding.

Since:
2.0

Field Summary
static java.lang.String AUTOWIRE_DOMAIN_METHOD
           
 
Constructor Summary
ControllersDomainBindingApi()
           
 
Method Summary
 java.util.Map getProperties(java.lang.Object instance)
          Returns a map of the objects properties that can be used to during binding to bind a subset of properties
static void initialize(java.lang.Object instance)
          Autowires the instance
static void initialize(java.lang.Object instance, java.util.Map namedArgs)
          A map based constructor that binds the named arguments to the target instance
 org.springframework.validation.BindingResult setProperties(java.lang.Object instance, java.lang.Object bindingSource)
          Binds the source object to the properties of the target instance converting any types as necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTOWIRE_DOMAIN_METHOD

public static final java.lang.String AUTOWIRE_DOMAIN_METHOD
See Also:
Constant Field Values
Constructor Detail

ControllersDomainBindingApi

public ControllersDomainBindingApi()
Method Detail

initialize

public static void initialize(java.lang.Object instance)
Autowires the instance

Parameters:
instance - The target instance

initialize

public static void initialize(java.lang.Object instance,
                              java.util.Map namedArgs)
A map based constructor that binds the named arguments to the target instance

Parameters:
instance - The target instance
namedArgs - The named arguments

setProperties

public org.springframework.validation.BindingResult setProperties(java.lang.Object instance,
                                                                  java.lang.Object bindingSource)
Binds the source object to the properties of the target instance converting any types as necessary

Parameters:
instance - The instance
bindingSource - The binding source
Returns:
The BindingResult

getProperties

public java.util.Map getProperties(java.lang.Object instance)
Returns a map of the objects properties that can be used to during binding to bind a subset of properties

Parameters:
instance - The instance
Returns:
An instance of DataBindingLazyMetaPropertyMap