Home | History | Annotate | Download | only in annotation
      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 }
     16