private void setProperties(Properties properties) { Object propertyValue; BeanDefinition beanDefinition = parserContext.getRegistry().getBeanDefinition(BATCH_PROPERTY_CONTEXT_BEAN_NAME); if(batchArtifactType.equals(BatchArtifactType.JOB)) { propertyValue = getJobProperties(properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP)) { propertyValue = getProperties(stepName, properties); } else if (batchArtifactType.equals(BatchArtifactType.ARTIFACT)) { propertyValue = getProperties(beanName, properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP_ARTIFACT)) { propertyValue = getStepArtifactProperties(beanDefinition, properties); } else { throw new IllegalStateException("Unhandled BatchArtifactType of: " + batchArtifactType); } beanDefinition.getPropertyValues().addPropertyValue(getPropertyName(batchArtifactType), propertyValue); }
private void setProperties(Properties properties) { Object propertyValue; BeanDefinition beanDefinition = parserContext.getRegistry().getBeanDefinition(BATCH_PROPERTY_CONTEXT_BEAN_NAME); if(batchArtifactType.equals(BatchArtifactType.JOB)) { propertyValue = getJobProperties(properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP)) { propertyValue = getProperties(stepName, properties); } else if (batchArtifactType.equals(BatchArtifactType.ARTIFACT)) { propertyValue = getProperties(beanName, properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP_ARTIFACT)) { propertyValue = getStepArtifactProperties(beanDefinition, properties); } else { throw new IllegalStateException("Unhandled BatchArtifactType of: " + batchArtifactType); } beanDefinition.getPropertyValues().addPropertyValue(getPropertyName(batchArtifactType), propertyValue); }
private void setProperties(Properties properties) { Object propertyValue; BeanDefinition beanDefinition = parserContext.getRegistry().getBeanDefinition(BATCH_PROPERTY_CONTEXT_BEAN_NAME); if(batchArtifactType.equals(BatchArtifactType.JOB)) { propertyValue = getJobProperties(properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP)) { propertyValue = getProperties(stepName, properties); } else if (batchArtifactType.equals(BatchArtifactType.ARTIFACT)) { propertyValue = getProperties(beanName, properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP_ARTIFACT)) { propertyValue = getStepArtifactProperties(beanDefinition, properties); } else { throw new IllegalStateException("Unhandled BatchArtifactType of: " + batchArtifactType); } beanDefinition.getPropertyValues().addPropertyValue(getPropertyName(batchArtifactType), propertyValue); }
private void setProperties(Properties properties) { Object propertyValue; BeanDefinition beanDefinition = parserContext.getRegistry().getBeanDefinition(BATCH_PROPERTY_CONTEXT_BEAN_NAME); if(batchArtifactType.equals(BatchArtifactType.JOB)) { propertyValue = getJobProperties(properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP)) { propertyValue = getProperties(stepName, properties); } else if (batchArtifactType.equals(BatchArtifactType.ARTIFACT)) { propertyValue = getProperties(beanName, properties); } else if (batchArtifactType.equals(BatchArtifactType.STEP_ARTIFACT)) { propertyValue = getStepArtifactProperties(beanDefinition, properties); } else { throw new IllegalStateException("Unhandled BatchArtifactType of: " + batchArtifactType); } beanDefinition.getPropertyValues().addPropertyValue(getPropertyName(batchArtifactType), propertyValue); }