Search in sources :

Example 1 with DefaultMapper

use of org.springframework.binding.mapping.impl.DefaultMapper in project cas by apereo.

the class AbstractCasWebflowConfigurer method createMapperToSubflowState.

/**
 * Create mapper to subflow state.
 *
 * @param mappings the mappings
 * @return the mapper
 */
public Mapper createMapperToSubflowState(final List<DefaultMapping> mappings) {
    val inputMapper = new DefaultMapper();
    mappings.forEach(inputMapper::addMapping);
    return inputMapper;
}
Also used : lombok.val(lombok.val) DefaultMapper(org.springframework.binding.mapping.impl.DefaultMapper)

Example 2 with DefaultMapper

use of org.springframework.binding.mapping.impl.DefaultMapper in project cas by apereo.

the class AbstractCasWebflowConfigurer method createMapperToSubflowState.

/**
     * Create mapper to subflow state.
     *
     * @param mappings the mappings
     * @return the mapper
     */
protected Mapper createMapperToSubflowState(final List<DefaultMapping> mappings) {
    final DefaultMapper inputMapper = new DefaultMapper();
    mappings.forEach(inputMapper::addMapping);
    return inputMapper;
}
Also used : DefaultMapper(org.springframework.binding.mapping.impl.DefaultMapper)

Aggregations

DefaultMapper (org.springframework.binding.mapping.impl.DefaultMapper)2 lombok.val (lombok.val)1