001/* 002 * Copyright 2006-2009 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.springframework.batch.core.configuration.xml; 017 018import org.springframework.beans.factory.support.AbstractBeanDefinition; 019import org.springframework.beans.factory.xml.ParserContext; 020import org.w3c.dom.Element; 021 022/** 023 * Internal parser for the <step/> elements for a job. A step element 024 * references a bean definition for a 025 * {@link org.springframework.batch.core.Step}. 026 * 027 * @author Dave Syer 028 * @author Thomas Risberg 029 * @since 2.0 030 */ 031public class StandaloneStepParser extends AbstractStepParser { 032 033 /** 034 * Parse the step and turn it into a list of transitions. 035 * 036 * @param element the <step/gt; element to parse 037 * @param parserContext the parser context for the bean factory 038 * @return {@link AbstractBeanDefinition} instance. 039 */ 040 public AbstractBeanDefinition parse(Element element, ParserContext parserContext) { 041 return parseStep(element, parserContext, null); 042 } 043}