use of org.grails.web.databinding.bindingsource.DataBindingSourceRegistry in project grails-core by grails.
the class DataBindingUtils method createDataBindingSource.
public static DataBindingSource createDataBindingSource(GrailsApplication grailsApplication, Class bindingTargetType, Object bindingSource) {
final DataBindingSourceRegistry registry = getDataBindingSourceRegistry(grailsApplication);
final MimeType mimeType = getMimeType(grailsApplication, bindingSource);
return registry.createDataBindingSource(mimeType, bindingTargetType, bindingSource);
}
use of org.grails.web.databinding.bindingsource.DataBindingSourceRegistry in project grails-core by grails.
the class DataBindingUtils method createCollectionDataBindingSource.
public static CollectionDataBindingSource createCollectionDataBindingSource(GrailsApplication grailsApplication, Class bindingTargetType, Object bindingSource) {
final DataBindingSourceRegistry registry = getDataBindingSourceRegistry(grailsApplication);
final MimeType mimeType = getMimeType(grailsApplication, bindingSource);
return registry.createCollectionDataBindingSource(mimeType, bindingTargetType, bindingSource);
}
Aggregations