Search in sources :

Example 1 with DataBindingSourceRegistry

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);
}
Also used : DataBindingSourceRegistry(org.grails.web.databinding.bindingsource.DataBindingSourceRegistry) DefaultDataBindingSourceRegistry(org.grails.web.databinding.bindingsource.DefaultDataBindingSourceRegistry) MimeType(grails.web.mime.MimeType)

Example 2 with DataBindingSourceRegistry

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);
}
Also used : DataBindingSourceRegistry(org.grails.web.databinding.bindingsource.DataBindingSourceRegistry) DefaultDataBindingSourceRegistry(org.grails.web.databinding.bindingsource.DefaultDataBindingSourceRegistry) MimeType(grails.web.mime.MimeType)

Aggregations

MimeType (grails.web.mime.MimeType)2 DataBindingSourceRegistry (org.grails.web.databinding.bindingsource.DataBindingSourceRegistry)2 DefaultDataBindingSourceRegistry (org.grails.web.databinding.bindingsource.DefaultDataBindingSourceRegistry)2