Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
6a96850a
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,发现更多精彩内容 >>
提交
6a96850a
编写于
11月 06, 2014
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polishing
上级
e02c23ee
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
14 deletion
+19
-14
spring-context/src/main/java/org/springframework/context/ApplicationContext.java
.../java/org/springframework/context/ApplicationContext.java
+13
-9
spring-context/src/main/java/org/springframework/context/annotation/ConditionEvaluator.java
...pringframework/context/annotation/ConditionEvaluator.java
+1
-1
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java
.../servlet/mvc/method/RequestMappingInfoHandlerMapping.java
+1
-1
src/asciidoc/index.adoc
src/asciidoc/index.adoc
+4
-3
未找到文件。
spring-context/src/main/java/org/springframework/context/ApplicationContext.java
浏览文件 @
6a96850a
/*
* Copyright 2002-201
2
the original author or authors.
* Copyright 2002-201
4
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.
...
...
@@ -90,18 +90,22 @@ public interface ApplicationContext extends EnvironmentCapable, ListableBeanFact
/**
* Expose AutowireCapableBeanFactory functionality for this context.
* <p>This is not typically used by application code, except for the purpose
*
of initializing bean instances that live outside
the application context,
* <p>This is not typically used by application code, except for the purpose
of
*
initializing bean instances that live outside of
the application context,
* applying the Spring bean lifecycle (fully or partly) to them.
* <p>Alternatively, the internal BeanFactory exposed by the
* {@link ConfigurableApplicationContext} interface offers access to the
* AutowireCapableBeanFactory interface too. The present method mainly
* serves as convenient, specific facility on the ApplicationContext
* interface itself.
* {@link AutowireCapableBeanFactory} interface too. The present method mainly
* serves as a convenient, specific facility on the ApplicationContext interface.
* <p><b>NOTE: As of 4.2, this method will consistently throw IllegalStateException
* after the application context has been closed.</b> In current Spring Framework
* versions, only refreshable application contexts behave that way; as of 4.2,
* all application context implementations will be required to comply.
* @return the AutowireCapableBeanFactory for this context
* @throws IllegalStateException if the context does not support
* the AutowireCapableBeanFactory interface or does not hold an autowire-capable
* bean factory yet (usually if {@code refresh()} has never been called)
* @throws IllegalStateException if the context does not support the
* {@link AutowireCapableBeanFactory} interface, or does not hold an
* autowire-capable bean factory yet (e.g. if {@code refresh()} has
* never been called), or if the context has been closed already
* @see ConfigurableApplicationContext#refresh()
* @see ConfigurableApplicationContext#getBeanFactory()
*/
...
...
spring-context/src/main/java/org/springframework/context/annotation/ConditionEvaluator.java
浏览文件 @
6a96850a
...
...
@@ -91,7 +91,7 @@ class ConditionEvaluator {
}
}
Collections
.
sort
(
conditions
,
AnnotationAwareOrderComparator
.
INSTANCE
);
AnnotationAwareOrderComparator
.
sort
(
conditions
);
for
(
Condition
condition
:
conditions
)
{
ConfigurationPhase
requiredPhase
=
null
;
...
...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java
浏览文件 @
6a96850a
...
...
@@ -55,11 +55,11 @@ import org.springframework.web.util.WebUtils;
*/
public
abstract
class
RequestMappingInfoHandlerMapping
extends
AbstractHandlerMethodMapping
<
RequestMappingInfo
>
{
protected
RequestMappingInfoHandlerMapping
()
{
setHandlerMethodMappingNamingStrategy
(
new
RequestMappingInfoHandlerMethodMappingNamingStrategy
());
}
/**
* Get the URL path patterns associated with this {@link RequestMappingInfo}.
*/
...
...
src/asciidoc/index.adoc
浏览文件 @
6a96850a
...
...
@@ -47660,12 +47660,11 @@ element.
rejection-policy="CALLER_RUNS"/>
----
Finally, the `keep-alive` setting determines the time limit (in seconds) for which threads
may remain idle before being terminated. If there are more than the core number of threads
currently in the pool, after waiting this amount of time without processing a task, excess
threads will
be
terminated. A time value of zero will cause excess threads to terminate
immediately after executing
tasks
.
threads will
get
terminated. A time value of zero will cause excess threads to terminate
immediately after executing
a task without remaining follow-up work in the task queue
.
[source,xml,indent=0]
[subs="verbatim,quotes"]
...
...
@@ -47676,6 +47675,8 @@ immediately after executing tasks.
keep-alive="120"/>
----
[[scheduling-task-namespace-scheduled-tasks]]
==== The 'scheduled-tasks' element
The most powerful feature of Spring's task namespace is the support for configuring
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录