geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1476380 - in /geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi: Bean.java BeanAttributes.java InjectionTargetFactory.java ProducerFactory.java
Date Fri, 26 Apr 2013 20:20:56 GMT
Author: struberg
Date: Fri Apr 26 20:20:56 2013
New Revision: 1476380

URL: http://svn.apache.org/r1476380
Log:
GERONIMO-6458 adopt cdi-1.1 changes

Added:
    geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
  (with props)
    geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java
  (with props)
Modified:
    geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/Bean.java
    geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/BeanAttributes.java

Modified: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/Bean.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/Bean.java?rev=1476380&r1=1476379&r2=1476380&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/Bean.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/Bean.java
Fri Apr 26 20:20:56 2013
@@ -47,4 +47,19 @@ public interface Bean<T> extends Context
      */
     public abstract Class<?> getBeanClass();
 
+    /**
+     * If bean is nullable return true, false
+     * otherwise.
+     *
+     * <p>
+     * Nullable means that if producer
+     * bean api type is primitive, its nullable property
+     * will be false.
+     * </p>
+     *
+     * @return true if bean is nullable.
+     * @deprecated since CDI-1.1. This should be ignored by the container from now on.
+     */
+    public abstract boolean isNullable();
+
 }

Modified: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/BeanAttributes.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/BeanAttributes.java?rev=1476380&r1=1476379&r2=1476380&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/BeanAttributes.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/BeanAttributes.java
Fri Apr 26 20:20:56 2013
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package javax.enterprise.inject.spi;
 
 import java.lang.annotation.Annotation;
@@ -40,21 +58,6 @@ public interface BeanAttributes<T> {
     public abstract String getName();
 
     /**
-     * If bean is nullable return true, false
-     * otherwise.
-     *
-     * <p>
-     * Nullable means that if producer
-     * bean api type is primitive, its nullable property
-     * will be false.
-     * </p>
-     *
-     * @return true if bean is nullable.
-     */
-    public abstract boolean isNullable();
-
-
-    /**
      * Returns bean stereotypes.
      *
      * @return bean stereotypes

Added: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java?rev=1476380&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
(added)
+++ geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
Fri Apr 26 20:20:56 2013
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.enterprise.inject.spi;
+
+/**
+ * A factory which is able to create container provided
+ * {@link InjectionTarget}s.
+ */
+public interface InjectionTargetFactory<T>
+{
+    /**
+     * Creates an InjectionTarget for the given Bean
+     * @param bean the Bean or <code>null</code> if the InjectionTarget should
not get managed by the container.
+     */
+    public InjectionTarget<T> createInjectionTarget(Bean<T> bean);
+}

Propchange: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/InjectionTargetFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java?rev=1476380&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java
(added)
+++ geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java
Fri Apr 26 20:20:56 2013
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.enterprise.inject.spi;
+
+/**
+ * A factory which is able to create container provided
+ * {@link Producer}s.
+ */
+public interface ProducerFactory<X>
+{
+    /**
+     * Creates a Producer for the given Bean
+     * @param bean the Bean or <code>null</code> if the Producer should not get
managed by the container.
+     */
+    public <T> Producer<T> createProducer(Bean<T> bean);
+
+}

Propchange: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/ProducerFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message