summaryrefslogtreecommitdiffstats
path: root/ri/src/main/java/javax/annotation/WillCloseWhenClosed.java
diff options
context:
space:
mode:
Diffstat (limited to 'ri/src/main/java/javax/annotation/WillCloseWhenClosed.java')
-rw-r--r--ri/src/main/java/javax/annotation/WillCloseWhenClosed.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/ri/src/main/java/javax/annotation/WillCloseWhenClosed.java b/ri/src/main/java/javax/annotation/WillCloseWhenClosed.java
new file mode 100644
index 0000000..13c927d
--- /dev/null
+++ b/ri/src/main/java/javax/annotation/WillCloseWhenClosed.java
@@ -0,0 +1,15 @@
+package javax.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+/**
+ * Used to annotate a constructor/factory parameter to indicate that returned
+ * object (X) will close the resource when X is closed.
+ */
+public @interface WillCloseWhenClosed {
+
+}