Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
9a1b41ff
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 搜索 >>
提交
9a1b41ff
编写于
2月 23, 2015
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish Javadoc & imports for BeanDefinitionDocumentReaders
上级
1705930c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
13 deletion
+11
-13
spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionDocumentReader.java
...ework/beans/factory/xml/BeanDefinitionDocumentReader.java
+4
-5
spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader.java
...eans/factory/xml/DefaultBeanDefinitionDocumentReader.java
+7
-8
未找到文件。
spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionDocumentReader.java
浏览文件 @
9a1b41ff
/*
* Copyright 2002-201
4
the original author or authors.
* Copyright 2002-201
5
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.
...
...
@@ -19,15 +19,14 @@ package org.springframework.beans.factory.xml;
import
org.w3c.dom.Document
;
import
org.springframework.beans.factory.BeanDefinitionStoreException
;
import
org.springframework.core.env.Environment
;
/**
* SPI for parsing an XML document that contains Spring bean definitions.
* Used by
XmlBeanDefinitionReader
for actually parsing a DOM document.
* Used by
{@link XmlBeanDefinitionReader}
for actually parsing a DOM document.
*
* <p>Instantiated per document to parse:
I
mplementations can hold
* <p>Instantiated per document to parse:
i
mplementations can hold
* state in instance variables during the execution of the
* {@code registerBeanDefinitions} method
, for example
global
* {@code registerBeanDefinitions} method
— for example,
global
* settings that are defined for all bean definitions in the document.
*
* @author Juergen Hoeller
...
...
spring-beans/src/main/java/org/springframework/beans/factory/xml/DefaultBeanDefinitionDocumentReader.java
浏览文件 @
9a1b41ff
/*
* Copyright 2002-201
4
the original author or authors.
* Copyright 2002-201
5
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.
...
...
@@ -32,22 +32,21 @@ import org.springframework.beans.factory.BeanDefinitionStoreException;
import
org.springframework.beans.factory.config.BeanDefinitionHolder
;
import
org.springframework.beans.factory.parsing.BeanComponentDefinition
;
import
org.springframework.beans.factory.support.BeanDefinitionReaderUtils
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.support.ResourcePatternUtils
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.util.StringUtils
;
/**
* Default implementation of the {@link BeanDefinitionDocumentReader} interface
.
*
R
eads bean definitions according to the "spring-beans" DTD and XSD format
* Default implementation of the {@link BeanDefinitionDocumentReader} interface
that
*
r
eads bean definitions according to the "spring-beans" DTD and XSD format
* (Spring's default XML bean definition format).
*
* <p>The structure, elements and attribute names of the required XML document
* <p>The structure, elements
,
and attribute names of the required XML document
* are hard-coded in this class. (Of course a transform could be run if necessary
* to produce this format). {@code
<beans>} doesn'
t need to be the root
* element of the XML document:
T
his class will parse all bean definition elements
* in the XML file,
not regarding
the actual root element.
* to produce this format). {@code
<beans>} does no
t need to be the root
* element of the XML document:
t
his class will parse all bean definition elements
* in the XML file,
regardless of
the actual root element.
*
* @author Rod Johnson
* @author Juergen Hoeller
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录