Skip to content

Commit b9d7913

Browse files
committed
Deprecate XmlBeans support (following the XMLBeans retirement at Apache)
Issue: SPR-13399
1 parent eaba794 commit b9d7913

File tree

4 files changed

+7
-34
lines changed

4 files changed

+7
-34
lines changed

spring-oxm/src/main/java/org/springframework/oxm/config/OxmNamespaceHandler.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,11 +28,12 @@
2828
public class OxmNamespaceHandler extends NamespaceHandlerSupport {
2929

3030
@Override
31+
@SuppressWarnings("deprecation")
3132
public void init() {
3233
registerBeanDefinitionParser("jaxb2-marshaller", new Jaxb2MarshallerBeanDefinitionParser());
3334
registerBeanDefinitionParser("jibx-marshaller", new JibxMarshallerBeanDefinitionParser());
34-
registerBeanDefinitionParser("xmlbeans-marshaller", new XmlBeansMarshallerBeanDefinitionParser());
3535
registerBeanDefinitionParser("castor-marshaller", new CastorMarshallerBeanDefinitionParser());
36+
registerBeanDefinitionParser("xmlbeans-marshaller", new XmlBeansMarshallerBeanDefinitionParser());
3637
}
3738

3839
}

spring-oxm/src/main/java/org/springframework/oxm/config/XmlBeansMarshallerBeanDefinitionParser.java

+2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
*
2929
* @author Arjen Poutsma
3030
* @since 3.0
31+
* @deprecated as of Spring 4.2, following the XMLBeans retirement at Apache
3132
*/
33+
@Deprecated
3234
class XmlBeansMarshallerBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {
3335

3436
@Override

spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java

+2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
* @see #setValidating
7676
* @see #setXmlOptions
7777
* @see XmlOptionsFactoryBean
78+
* @deprecated as of Spring 4.2, following the XMLBeans retirement at Apache
7879
*/
80+
@Deprecated
7981
public class XmlBeansMarshaller extends AbstractMarshaller {
8082

8183
private XmlOptions xmlOptions;

spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm-4.2.xsd

-32
Original file line numberDiff line numberDiff line change
@@ -120,38 +120,6 @@
120120
</xsd:complexType>
121121
</xsd:element>
122122

123-
<xsd:element name="xmlbeans-marshaller">
124-
<xsd:complexType>
125-
<xsd:annotation>
126-
<xsd:documentation source="java:org.springframework.oxm.xmlbeans.XmlBeansMarshaller">
127-
Defines a XMLBeans Marshaller.
128-
</xsd:documentation>
129-
<xsd:appinfo>
130-
<tool:annotation>
131-
<tool:exports type="org.springframework.oxm.xmlbeans.XmlBeansMarshaller"/>
132-
</tool:annotation>
133-
</xsd:appinfo>
134-
</xsd:annotation>
135-
<xsd:complexContent>
136-
<xsd:extension base="beans:identifiedType">
137-
<xsd:attribute name="options" type="xsd:string">
138-
<xsd:annotation>
139-
<xsd:documentation source="java:org.apache.xmlbeans.XmlOptions">
140-
The bean name of the XmlOptions that is to be used for this marshaller. Typically a
141-
XmlOptionsFactoryBean definition.
142-
</xsd:documentation>
143-
<xsd:appinfo>
144-
<tool:annotation kind="ref">
145-
<tool:expected-type type="org.apache.xmlbeans.XmlOptions"/>
146-
</tool:annotation>
147-
</xsd:appinfo>
148-
</xsd:annotation>
149-
</xsd:attribute>
150-
</xsd:extension>
151-
</xsd:complexContent>
152-
</xsd:complexType>
153-
</xsd:element>
154-
155123
<xsd:simpleType name="classType">
156124
<xsd:annotation>
157125
<xsd:documentation source="java:java.lang.Class">A class supported by a marshaller.</xsd:documentation>

0 commit comments

Comments
 (0)