Moved the fist namespace to execution from core

This commit is contained in:
nebhale
2008-02-18 15:21:33 +00:00
parent 5ed0a9cfc6
commit 0b3f025707
5 changed files with 49 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
package org.springframework.batch.execution.configuration;
import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
* <code>NamespaceHandler</code> for the <code>batch</code> namespace.
*
* <p>Provides a {@link BeanDefinitionParser} for the <code>&lt;batch:job&gt;</code> tag. A <code>job</code>
* tag can include nested <code>chunked-step</code> and <code>tasklet-step</code> tags.
*
* @author Ben Hale
*/
public class BatchCoreNamespaceHandler extends NamespaceHandlerSupport {
/**
* Register the {@link BeanDefinitionParser BeanDefinitionParser} for the
* '<code>job</code>', tag.
*/
public void init() {
registerBeanDefinitionParser("job", new JobBeanDefinitionParser());
}
}

View File

@@ -0,0 +1,21 @@
package org.springframework.batch.execution.configuration;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
class JobBeanDefinitionParser implements BeanDefinitionParser {
private static final String JOB = "job";
private static final String CHUNKING_STEP = "chunking-step";
private static final String TASKLET_STEP ="tasklet-step";
public BeanDefinition parse(Element element, ParserContext parserContext) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException();
}
}

View File

@@ -0,0 +1 @@
http\://www.springframework.org/schema/batch-execution=org.springframework.batch.execution.config.BatchCoreNamespaceHandler

View File

@@ -0,0 +1 @@
http\://www.springframework.org/schema/batch/spring-batch-execution-1.0.xsd=org/springframework/batch/core/config/spring-batch-execution-1.0.xsd

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.springframework.org/schema/batch-core"
<xs:schema xmlns="http://www.springframework.org/schema/batch-execution"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.springframework.org/schema/batch-core"
targetNamespace="http://www.springframework.org/schema/batch-execution"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
<xs:element name="job">