Moved the fist namespace to execution from core
This commit is contained in:
@@ -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><batch:job></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());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
http\://www.springframework.org/schema/batch-execution=org.springframework.batch.execution.config.BatchCoreNamespaceHandler
|
||||
@@ -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
|
||||
@@ -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">
|
||||
Reference in New Issue
Block a user