Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
122d3476
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,发现更多精彩内容 >>
提交
122d3476
编写于
4月 24, 2015
作者:
S
Sam Brannen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish Javadoc for condition annotation attributes
上级
ad6bea1c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
19 deletion
+24
-19
spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java
...java/org/springframework/cache/annotation/CacheEvict.java
+5
-4
spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java
...n/java/org/springframework/cache/annotation/CachePut.java
+3
-2
spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java
.../java/org/springframework/cache/annotation/Cacheable.java
+5
-4
spring-context/src/main/java/org/springframework/context/event/EventListener.java
...java/org/springframework/context/event/EventListener.java
+2
-1
spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java
...amework/transaction/event/TransactionalEventListener.java
+9
-8
未找到文件。
spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java
浏览文件 @
122d3476
/*
* 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.
...
...
@@ -25,7 +25,7 @@ import java.lang.annotation.Target;
/**
* Annotation indicating that a method (or all methods on a class) trigger(s)
* a cache
invalidate
operation.
* a cache
eviction
operation.
*
* @author Costin Leau
* @author Stephane Nicoll
...
...
@@ -73,8 +73,9 @@ public @interface CacheEvict {
String
cacheResolver
()
default
""
;
/**
* Spring Expression Language (SpEL) attribute used for conditioning the method caching.
* <p>Default is "", meaning the method is always cached.
* Spring Expression Language (SpEL) attribute used for making the cache
* eviction operation conditional.
* <p>Default is "", meaning the cache eviction is always performed.
*/
String
condition
()
default
""
;
...
...
spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java
浏览文件 @
122d3476
/*
* 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.
...
...
@@ -78,7 +78,8 @@ public @interface CachePut {
String
cacheResolver
()
default
""
;
/**
* Spring Expression Language (SpEL) attribute used for conditioning the cache update.
* Spring Expression Language (SpEL) attribute used for making the cache
* put operation conditional.
* <p>Default is "", meaning the method result is always cached.
*/
String
condition
()
default
""
;
...
...
spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java
浏览文件 @
122d3476
/*
* 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.
...
...
@@ -34,7 +34,7 @@ import java.lang.annotation.Target;
* can replace the default one ({@link #keyGenerator()}).
*
* <p>If no value is found in the cache for the computed key, the method is executed
* and the returned
instanc
e is used as the cache value.
* and the returned
valu
e is used as the cache value.
*
* @author Costin Leau
* @author Phillip Webb
...
...
@@ -83,8 +83,9 @@ public @interface Cacheable {
String
cacheResolver
()
default
""
;
/**
* Spring Expression Language (SpEL) attribute used for conditioning the method caching.
* <p>Default is "", meaning the method is always cached.
* Spring Expression Language (SpEL) attribute used for making the method
* caching conditional.
* <p>Default is "", meaning the method result is always cached.
*/
String
condition
()
default
""
;
...
...
spring-context/src/main/java/org/springframework/context/event/EventListener.java
浏览文件 @
122d3476
...
...
@@ -55,7 +55,8 @@ import org.springframework.context.ApplicationEvent;
public
@interface
EventListener
{
/**
* Spring Expression Language (SpEL) attribute used for conditioning the event handling.
* Spring Expression Language (SpEL) attribute used for making the event
* handling conditional.
* <p>Default is "", meaning the event is always handled.
*/
String
condition
()
default
""
;
...
...
spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java
浏览文件 @
122d3476
...
...
@@ -26,13 +26,13 @@ import org.springframework.context.event.EventListener;
/**
* An {@link EventListener} that is invoked according to a {@link TransactionPhase}.
*
<p>
*
If the event is not published
in the boundaries of a managed transaction, the event
*
*
<p>If the event is not published with
in the boundaries of a managed transaction, the event
* is discarded unless the {@link #fallbackExecution()} flag is explicitly set. If a
* transaction is running, the event is processed according to its {@link TransactionPhase}.
*
<p>
* Adding {@link org.springframework.core.annotation.Order @Order} on your annotated method
* allows you to prioritize that listener amongst other listeners running
o
n the same phase.
*
*
<p>
Adding {@link org.springframework.core.annotation.Order @Order} on your annotated method
* allows you to prioritize that listener amongst other listeners running
i
n the same phase.
*
* @author Stephane Nicoll
* @since 4.2
...
...
@@ -45,7 +45,7 @@ public @interface TransactionalEventListener {
/**
* Phase to bind the handling of an event to. If no transaction is in progress, the
* event is not processed at all unless {@link #fallbackExecution
()
} has been
* event is not processed at all unless {@link #fallbackExecution} has been
* enabled explicitly.
*/
TransactionPhase
phase
()
default
TransactionPhase
.
AFTER_COMMIT
;
...
...
@@ -56,9 +56,10 @@ public @interface TransactionalEventListener {
boolean
fallbackExecution
()
default
false
;
/**
* Spring Expression Language (SpEL) attribute used for conditioning the event handling.
* Spring Expression Language (SpEL) attribute used for making the event
* handling conditional.
* <p>Default is "", meaning the event is always handled.
* @see EventListener#condition
()
* @see EventListener#condition
*/
String
condition
()
default
""
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录