1package 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}
16