1 16 package org.springframework.webflow.action; 17 18 import org.springframework.binding.mapping.AttributeMapper; 19 import org.springframework.binding.mapping.MappingContext; 20 import org.springframework.util.Assert; 21 import org.springframework.webflow.execution.Event; 22 import org.springframework.webflow.execution.RequestContext; 23 24 41 public class AttributeMapperAction extends AbstractAction { 42 43 46 private AttributeMapper attributeMapper; 47 48 53 public AttributeMapperAction(AttributeMapper attributeMapper) { 54 Assert.notNull(attributeMapper, "The attribute mapper is required"); 55 this.attributeMapper = attributeMapper; 56 } 57 58 protected Event doExecute(RequestContext context) throws Exception { 59 attributeMapper.map(context, context, getMappingContext(context)); 61 return success(); 62 } 63 64 69 protected MappingContext getMappingContext(RequestContext context) { 70 return null; 71 } 72 } | Popular Tags |