KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > annotation > Tx


1 /*
2  * Copyright (c) 2004 Your Corporation. All Rights Reserved.
3  */

4 package org.jfox.ioc.annotation;
5
6 import java.lang.annotation.ElementType JavaDoc;
7 import java.lang.annotation.Retention JavaDoc;
8 import java.lang.annotation.RetentionPolicy JavaDoc;
9 import java.lang.annotation.Target JavaDoc;
10
11 /**
12  * 用来表示一个方法的属性
13  * @author <a HREF="mailto:yy.young@gmail.com">Young Yang</a>
14  */

15
16 @Retention JavaDoc(RetentionPolicy.RUNTIME)
17 @Target JavaDoc({ElementType.METHOD})
18 public @interface Tx {
19     TxAttr value() default TxAttr.REQUIRED;
20 }
21
22
Popular Tags