private SubflowAttributeMapper parseSubflowAttributeMapper(SubflowStateModel state) { if (StringUtils.hasText(state.getSubflowAttributeMapper())) { String beanId = state.getSubflowAttributeMapper(); return getLocalContext().getApplicationContext().getBean(beanId, SubflowAttributeMapper.class); } else { Mapper inputMapper = parseSubflowInputMapper(state.getInputs()); Mapper outputMapper = parseSubflowOutputMapper(state.getOutputs()); return new GenericSubflowAttributeMapper(inputMapper, outputMapper); } }
/** * Create subflow attribute mapper. * * @param inputMapper the input mapper * @param outputMapper the output mapper * @return the subflow attribute mapper */ public SubflowAttributeMapper createSubflowAttributeMapper(final Mapper inputMapper, final Mapper outputMapper) { return new GenericSubflowAttributeMapper(inputMapper, outputMapper); }
/** * Create subflow attribute mapper. * * @param inputMapper the input mapper * @param outputMapper the output mapper * @return the subflow attribute mapper */ protected SubflowAttributeMapper createSubflowAttributeMapper(final Mapper inputMapper, final Mapper outputMapper) { return new GenericSubflowAttributeMapper(inputMapper, outputMapper); } }
/** * Create subflow attribute mapper. * * @param inputMapper the input mapper * @param outputMapper the output mapper * @return the subflow attribute mapper */ protected static SubflowAttributeMapper createSubflowAttributeMapper(final Mapper inputMapper, final Mapper outputMapper) { return new GenericSubflowAttributeMapper(inputMapper, outputMapper); }
private SubflowAttributeMapper parseSubflowAttributeMapper(SubflowStateModel state) { if (StringUtils.hasText(state.getSubflowAttributeMapper())) { String beanId = state.getSubflowAttributeMapper(); return (SubflowAttributeMapper) getLocalContext().getApplicationContext().getBean(beanId, SubflowAttributeMapper.class); } else { Mapper inputMapper = parseSubflowInputMapper(state.getInputs()); Mapper outputMapper = parseSubflowOutputMapper(state.getOutputs()); return new GenericSubflowAttributeMapper(inputMapper, outputMapper); } }
private SubflowAttributeMapper parseSubflowAttributeMapper(SubflowStateModel state) { if (StringUtils.hasText(state.getSubflowAttributeMapper())) { String beanId = state.getSubflowAttributeMapper(); return getLocalContext().getApplicationContext().getBean(beanId, SubflowAttributeMapper.class); } else { Mapper inputMapper = parseSubflowInputMapper(state.getInputs()); Mapper outputMapper = parseSubflowOutputMapper(state.getOutputs()); return new GenericSubflowAttributeMapper(inputMapper, outputMapper); } }