Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
81844191
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,发现更多精彩内容 >>
提交
81844191
编写于
5月 31, 2015
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish Javadoc for @ImportResource
上级
4dffeeee
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
18 addition
and
14 deletion
+18
-14
spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java
...rg/springframework/context/annotation/ImportResource.java
+18
-14
未找到文件。
spring-context/src/main/java/org/springframework/context/annotation/ImportResource.java
浏览文件 @
81844191
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -29,19 +29,20 @@ import org.springframework.beans.factory.support.BeanDefinitionReader;
...
@@ -29,19 +29,20 @@ import org.springframework.beans.factory.support.BeanDefinitionReader;
*
*
* <p>Like {@link Import @Import}, this annotation provides functionality similar to
* <p>Like {@link Import @Import}, this annotation provides functionality similar to
* the {@code <import/>} element in Spring XML. It is typically used when designing
* the {@code <import/>} element in Spring XML. It is typically used when designing
* {@link Configuration @Configuration} classes to be bootstrapped by
* {@link Configuration @Configuration} classes to be bootstrapped by
an
* {@link AnnotationConfigApplicationContext}, but where some XML functionality such
* {@link AnnotationConfigApplicationContext}, but where some XML functionality such
* as namespaces is still necessary.
* as namespaces is still necessary.
*
*
* <p>By default, arguments to the {@link #value
()} attribute will be processed using
* <p>By default, arguments to the {@link #value
} attribute will be processed using a
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader} if ending in
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader} if ending in
*
".groovy"; otherwise,
{@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
*
{@code ".groovy"}; otherwise, an
{@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
* will be used to parse Spring {@code <beans/>} XML files. Optionally, the {@link #reader
()
}
* will be used to parse Spring {@code <beans/>} XML files. Optionally, the {@link #reader}
* attribute may be
suppli
ed, allowing the user to choose a custom {@link BeanDefinitionReader}
* attribute may be
declar
ed, allowing the user to choose a custom {@link BeanDefinitionReader}
* implementation.
* implementation.
*
*
* @author Chris Beams
* @author Chris Beams
* @author Juergen Hoeller
* @author Juergen Hoeller
* @author Sam Brannen
* @since 3.0
* @since 3.0
* @see Configuration
* @see Configuration
* @see Import
* @see Import
...
@@ -52,21 +53,24 @@ import org.springframework.beans.factory.support.BeanDefinitionReader;
...
@@ -52,21 +53,24 @@ import org.springframework.beans.factory.support.BeanDefinitionReader;
public
@interface
ImportResource
{
public
@interface
ImportResource
{
/**
/**
* Resource paths to import. Resource-loading prefixes such as {@code classpath:}
* Resource locations from which to import.
* and {@code file:}, etc may be used.
* <p>Supports resource-loading prefixes such as {@code classpath:}, {@code file:},
* <p>Out of the box, ".groovy" files are going to be specifically parsed with
* etc.
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader};
* <p>Consult the Javadoc for {@link #reader} for details on how resources
* others with {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}.
* will be processed.
* @see #reader
*/
*/
String
[]
value
();
String
[]
value
();
/**
/**
* {@link BeanDefinitionReader} implementation to use when processing resources
* {@link BeanDefinitionReader} implementation to use when processing resources
* specified
by the {@link #value()
} attribute.
* specified
via the {@link #value
} attribute.
* <p>By default, the reader will be adapted to the resource path specified:
* <p>By default, the reader will be adapted to the resource path specified:
*
".groovy" files are going to be specifically parsed with
*
{@code ".groovy"} files will be processed with a
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader};
* {@link org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader};
* others with {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}.
* whereas, all other resources will be processed with an
* {@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}.
* @see #value
*/
*/
Class
<?
extends
BeanDefinitionReader
>
reader
()
default
BeanDefinitionReader
.
class
;
Class
<?
extends
BeanDefinitionReader
>
reader
()
default
BeanDefinitionReader
.
class
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录