Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
08c78554
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
08c78554
编写于
11月 20, 2017
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deprecate Castor support
Issue: SPR-16219
上级
40dacd3c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
7 deletion
+14
-7
spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java
...rg/springframework/oxm/castor/CastorMappingException.java
+3
-1
spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java
...java/org/springframework/oxm/castor/CastorMarshaller.java
+4
-2
spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java
...work/oxm/config/CastorMarshallerBeanDefinitionParser.java
+4
-2
spring-oxm/src/main/java/org/springframework/oxm/config/OxmNamespaceHandler.java
...a/org/springframework/oxm/config/OxmNamespaceHandler.java
+2
-1
spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm.xsd
...n/resources/org/springframework/oxm/config/spring-oxm.xsd
+1
-1
未找到文件。
spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java
浏览文件 @
08c78554
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -23,7 +23,9 @@ import org.springframework.oxm.XmlMappingException;
*
* @author Juergen Hoeller
* @since 3.0
* @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project
*/
@Deprecated
@SuppressWarnings
(
"serial"
)
public
class
CastorMappingException
extends
XmlMappingException
{
...
...
spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java
浏览文件 @
08c78554
...
...
@@ -74,8 +74,8 @@ import org.springframework.util.xml.StaxUtils;
* can only be used to unmarshal XML that represents that specific class. If you want to unmarshal
* multiple classes, you have to provide a mapping file using {@code setMappingLocations}.
*
* <p>Due to limitations of Castor's API, it is required to set the encoding used for
*
writing
to output streams. It defaults to {@code UTF-8}.
* <p>Due to limitations of Castor's API, it is required to set the encoding used for
writing
* to output streams. It defaults to {@code UTF-8}.
*
* @author Arjen Poutsma
* @author Jakub Narloch
...
...
@@ -86,7 +86,9 @@ import org.springframework.util.xml.StaxUtils;
* @see #setTargetPackages(String[])
* @see #setMappingLocation(Resource)
* @see #setMappingLocations(Resource[])
* @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project
*/
@Deprecated
public
class
CastorMarshaller
extends
AbstractMarshaller
implements
InitializingBean
,
BeanClassLoaderAware
{
/**
...
...
spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java
浏览文件 @
08c78554
/*
* Copyright 2002-201
3
the original author or authors.
* Copyright 2002-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -25,8 +25,10 @@ import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser;
*
* @author Jakub Narloch
* @since 3.1
* @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project
*/
public
class
CastorMarshallerBeanDefinitionParser
extends
AbstractSimpleBeanDefinitionParser
{
@Deprecated
class
CastorMarshallerBeanDefinitionParser
extends
AbstractSimpleBeanDefinitionParser
{
@Override
protected
String
getBeanClassName
(
Element
element
)
{
...
...
spring-oxm/src/main/java/org/springframework/oxm/config/OxmNamespaceHandler.java
浏览文件 @
08c78554
/*
* Copyright 2002-201
6
the original author or authors.
* Copyright 2002-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -27,6 +27,7 @@ import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
*/
public
class
OxmNamespaceHandler
extends
NamespaceHandlerSupport
{
@SuppressWarnings
(
"deprecation"
)
@Override
public
void
init
()
{
registerBeanDefinitionParser
(
"jaxb2-marshaller"
,
new
Jaxb2MarshallerBeanDefinitionParser
());
...
...
spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm.xsd
浏览文件 @
08c78554
...
...
@@ -85,7 +85,7 @@
<xsd:annotation>
<xsd:documentation
source=
"java:org.springframework.oxm.castor.CastorMarshaller"
>
Defines a Castor Marshaller.
Defines a Castor Marshaller.
Deprecated as of Spring Framework 4.3.13!
</xsd:documentation>
<xsd:appinfo>
<tool:annotation>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录