geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject svn commit: r1866293 - in /geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation: Resource.java sql/DataSourceDefinition.java
Date Mon, 02 Sep 2019 20:50:01 GMT
Author: jlmonteiro
Date: Mon Sep  2 20:50:01 2019
New Revision: 1866293

URL: http://svn.apache.org/viewvc?rev=1866293&view=rev
Log:
Add Repeatable on @Resource and @DataSourceDefinition

Modified:
    geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/Resource.java
    geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/sql/DataSourceDefinition.java

Modified: geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/Resource.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/Resource.java?rev=1866293&r1=1866292&r2=1866293&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/Resource.java
(original)
+++ geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/Resource.java
Mon Sep  2 20:50:01 2019
@@ -24,6 +24,7 @@
 //
 package javax.annotation;
 
+import java.lang.annotation.Repeatable;
 import java.lang.annotation.Target;
 import java.lang.annotation.Retention;
 import java.lang.annotation.ElementType;
@@ -34,6 +35,7 @@ import java.lang.annotation.RetentionPol
  */
 @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
 @Retention(RetentionPolicy.RUNTIME)
+@Repeatable(Resources.class)
 public @interface Resource {
     enum AuthenticationType {
         CONTAINER,

Modified: geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/sql/DataSourceDefinition.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/sql/DataSourceDefinition.java?rev=1866293&r1=1866292&r2=1866293&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/sql/DataSourceDefinition.java
(original)
+++ geronimo/specs/trunk/geronimo-annotation_1.3_spec/src/main/java/javax/annotation/sql/DataSourceDefinition.java
Mon Sep  2 20:50:01 2019
@@ -22,6 +22,8 @@
 package javax.annotation.sql;
 
 import static java.lang.annotation.ElementType.TYPE;
+
+import java.lang.annotation.Repeatable;
 import java.lang.annotation.Retention;
 import static java.lang.annotation.RetentionPolicy.RUNTIME;
 import java.lang.annotation.Target;
@@ -31,6 +33,7 @@ import java.lang.annotation.Target;
  */
 @Retention(RUNTIME)
 @Target({TYPE})
+@Repeatable(DataSourceDefinitions.class)
 public @interface DataSourceDefinition {
 
     boolean transactional() default true;



Mime
View raw message