geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1796176 - in /geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi: BeforeBeanDiscovery.java InjectionTargetFactory.java
Date Thu, 25 May 2017 17:02:32 GMT
Author: struberg
Date: Thu May 25 17:02:32 2017
New Revision: 1796176

URL: http://svn.apache.org/viewvc?rev=1796176&view=rev
Log:
GERONIMO-6553 more cdi 2.0 fixes

Modified:
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java?rev=1796176&r1=1796175&r2=1796176&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/BeforeBeanDiscovery.java
Thu May 25 17:02:32 2017
@@ -96,10 +96,10 @@ public interface BeforeBeanDiscovery
     /**
      * Returns a new annotated type configurator based on a new bean id and bean class.
      *
+     * @param clazz to add
      * @param id of the annotated type
-     * @param clazz
      * @param <T>
      * @return
      */
-    <T> AnnotatedTypeConfigurator<T> addAnnotatedType(String id, Class<T>
clazz);
+    <T> AnnotatedTypeConfigurator<T> addAnnotatedType(Class<T> clazz, String
id);
 }

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java?rev=1796176&r1=1796175&r2=1796176&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
Thu May 25 17:02:32 2017
@@ -18,6 +18,8 @@
  */
 package javax.enterprise.inject.spi;
 
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
+
 /**
  * A factory which is able to create container provided
  * {@link InjectionTarget}s.
@@ -29,4 +31,13 @@ public interface InjectionTargetFactory<
      * @param bean the Bean or <code>null</code> if the InjectionTarget should
not get managed by the container.
      */
     InjectionTarget<T> createInjectionTarget(Bean<T> bean);
+
+    /**
+     * @return a new annotated type configurator which can be used to set up an {@link AnnotatedType}
+     *      to be used to create the {@link InjectionTarget}.
+     */
+    default AnnotatedTypeConfigurator<T> configure()
+    {
+        throw new UnsupportedOperationException("AnnotatedType Configuration not supported
by default");
+    }
 }



Mime
View raw message