blob: 13c927d66f5e6b69b442f7499d8ea8a70942a177 [file] [log] [blame]
Jesse Wilson66e84b92009-12-10 17:45:56 -08001package javax.annotation;
2
3import java.lang.annotation.Documented;
4import java.lang.annotation.Retention;
5import 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 */
13public @interface WillCloseWhenClosed {
14
15}