Jesse Wilson | 66e84b9 | 2009-12-10 17:45:56 -0800 | [diff] [blame] | 1 | package javax.annotation; |
2 | |||||
3 | import java.lang.annotation.Documented; | ||||
4 | import java.lang.annotation.Retention; | ||||
5 | import java.lang.annotation.RetentionPolicy; | ||||
6 | |||||
7 | @Documented | ||||
8 | @Retention(RetentionPolicy.RUNTIME) | ||||
9 | /** | ||||
10 | * Used to annotate a constructor/factory parameter to indicate that returned | ||||
11 | * object (X) will close the resource when X is closed. | ||||
12 | */ | ||||
13 | public @interface WillCloseWhenClosed { | ||||
14 | |||||
15 | } |