Class CoreNamespaceUtils
java.lang.Object
org.springframework.batch.core.configuration.xml.CoreNamespaceUtils
Utility methods used in parsing of the batch core namespace.
- Author:
- Thomas Risberg, Michael Minella, Mahmoud Ben Hassine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidautoregisterBeansForNamespace(org.springframework.beans.factory.xml.ParserContext parserContext, Object source) Create the beans based on the content of the source.static booleanisAbstract(Element element) static booleanisUnderspecified(Element element) Should this element be treated as incomplete? If it has a parent or is abstract, it may not have all properties.static booleannamespaceMatchesVersion(Element element) Check that the schema location declared in the source file being parsed matches the Spring Batch version.
-
Constructor Details
-
CoreNamespaceUtils
public CoreNamespaceUtils()
-
-
Method Details
-
autoregisterBeansForNamespace
public static void autoregisterBeansForNamespace(org.springframework.beans.factory.xml.ParserContext parserContext, Object source) Create the beans based on the content of the source.- Parameters:
parserContext- The parser context to be used.source- The source for the auto registration.
-
isUnderspecified
Should this element be treated as incomplete? If it has a parent or is abstract, it may not have all properties.- Parameters:
element- to be evaluated.- Returns:
trueif the element is abstract or has a parent.
-
isAbstract
- Parameters:
element- The element to be evaluated.- Returns:
trueif the element is abstract.
-
namespaceMatchesVersion
Check that the schema location declared in the source file being parsed matches the Spring Batch version.- Parameters:
element- The element that is to be parsed next.- Returns:
trueif we find a schema declaration that matches.
-