Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Meiracle
spring-framework
提交
4b211fb1
S
spring-framework
项目概览
Meiracle
/
spring-framework
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
4b211fb1
编写于
9月 07, 2020
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Javadoc refinements
上级
e797398b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
spring-context/src/main/java/org/springframework/context/annotation/Condition.java
...ava/org/springframework/context/annotation/Condition.java
+3
-3
spring-context/src/main/java/org/springframework/context/annotation/ConditionContext.java
.../springframework/context/annotation/ConditionContext.java
+2
-2
spring-context/src/main/java/org/springframework/context/annotation/Conditional.java
...a/org/springframework/context/annotation/Conditional.java
+2
-2
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
...ramework/context/annotation/ConfigurationClassParser.java
+1
-1
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationCondition.java
...gframework/context/annotation/ConfigurationCondition.java
+4
-4
未找到文件。
spring-context/src/main/java/org/springframework/context/annotation/Condition.java
浏览文件 @
4b211fb1
/*
* Copyright 2002-20
17
the original author or authors.
* Copyright 2002-20
20
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.
...
...
@@ -29,8 +29,8 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
*
* <p>Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor}
* and take care to never interact with bean instances. For more fine-grained control
* of conditions that interact with {@code @Configuration} beans consider
the
* {@link ConfigurationCondition} interface.
* of conditions that interact with {@code @Configuration} beans consider
implementing
*
the
{@link ConfigurationCondition} interface.
*
* @author Phillip Webb
* @since 4.0
...
...
spring-context/src/main/java/org/springframework/context/annotation/ConditionContext.java
浏览文件 @
4b211fb1
/*
* Copyright 2002-20
18
the original author or authors.
* Copyright 2002-20
20
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,7 @@ import org.springframework.core.io.ResourceLoader;
import
org.springframework.lang.Nullable
;
/**
* Context information for use by {@link Condition
Conditions}
.
* Context information for use by {@link Condition
} implementations
.
*
* @author Phillip Webb
* @author Juergen Hoeller
...
...
spring-context/src/main/java/org/springframework/context/annotation/Conditional.java
浏览文件 @
4b211fb1
/*
* Copyright 2002-20
18
the original author or authors.
* Copyright 2002-20
20
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.
...
...
@@ -62,7 +62,7 @@ import java.lang.annotation.Target;
public
@interface
Conditional
{
/**
* All {@link Condition
Conditions}
that must {@linkplain Condition#matches match}
* All {@link Condition
} classes
that must {@linkplain Condition#matches match}
* in order for the component to be registered.
*/
Class
<?
extends
Condition
>[]
value
();
...
...
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java
浏览文件 @
4b211fb1
...
...
@@ -667,7 +667,7 @@ class ConfigurationClassParser {
}
/**
* Factory method to obtain
{@link SourceClass SourceClasss}
from class names.
* Factory method to obtain
a {@link SourceClass} collection
from class names.
*/
private
Collection
<
SourceClass
>
asSourceClasses
(
String
[]
classNames
,
Predicate
<
String
>
filter
)
throws
IOException
{
List
<
SourceClass
>
annotatedClasses
=
new
ArrayList
<>(
classNames
.
length
);
...
...
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationCondition.java
浏览文件 @
4b211fb1
/*
* Copyright 2002-20
18
the original author or authors.
* Copyright 2002-20
20
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.
...
...
@@ -18,7 +18,7 @@ package org.springframework.context.annotation;
/**
* A {@link Condition} that offers more fine-grained control when used with
* {@code @Configuration}. Allows certain
{@link Condition Conditions}
to adapt when they match
* {@code @Configuration}. Allows certain
conditions
to adapt when they match
* based on the configuration phase. For example, a condition that checks if a bean
* has already been registered might choose to only be evaluated during the
* {@link ConfigurationPhase#REGISTER_BEAN REGISTER_BEAN} {@link ConfigurationPhase}.
...
...
@@ -52,8 +52,8 @@ public interface ConfigurationCondition extends Condition {
* The {@link Condition} should be evaluated when adding a regular
* (non {@code @Configuration}) bean. The condition will not prevent
* {@code @Configuration} classes from being added.
* <p>At the time that the condition is evaluated, all {@code @Configuration}
s
* will have been parsed.
* <p>At the time that the condition is evaluated, all {@code @Configuration}
*
classes
will have been parsed.
*/
REGISTER_BEAN
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录