openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r735300 - in /incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans: InjectionPoint.java manager/Bean.java manager/Contextual.java manager/CreationalContext.java manager/Deployed.java
Date Sat, 17 Jan 2009 15:12:38 GMT
Author: gerdogdu
Date: Sat Jan 17 07:12:37 2009
New Revision: 735300

URL: http://svn.apache.org/viewvc?rev=735300&view=rev
Log:
Adding new interfaces for adapting spec.

Added:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java
  (with props)
Modified:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java?rev=735300&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
Sat Jan 17 07:12:37 2009
@@ -0,0 +1,39 @@
+/*
+ * 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.webbeans;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Member;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+import javax.webbeans.manager.Bean;
+
+public interface InjectionPoint
+{
+    public Type getType();
+
+    public Set<Annotation> getBindings();
+
+    public Bean<?> getBean();
+
+    public Member getMember();
+
+    public <T extends Annotation> T getAnnotation(Class<T> annotationType);
+
+    public Annotation[] getAnnotations();
+
+    public boolean isAnnotationPresent(Class<? extends Annotation> annotationType);
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java?rev=735300&r1=735299&r2=735300&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java
Sat Jan 17 07:12:37 2009
@@ -16,14 +16,12 @@
 import java.lang.annotation.Annotation;
 import java.util.Set;
 
+import javax.webbeans.InjectionPoint;
+
 /**
  * Web Beans component contract.
- * 
- * @author gurkanerdogdu
- * @since 1.0
  */
-@SuppressWarnings("unchecked")
-public abstract class Bean<T>
+public abstract class Bean<T> implements Contextual<T>
 {
     /** Manager instance */
     private final Manager manager;
@@ -112,5 +110,7 @@
      * @return true if nullable
      */
     public abstract boolean isNullable();
+    
+    public abstract Set<InjectionPoint> getInjectionPoints();
 
 }
\ No newline at end of file

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java?rev=735300&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java
Sat Jan 17 07:12:37 2009
@@ -0,0 +1,24 @@
+/*
+ *  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.webbeans.manager;
+
+public interface Contextual<T>
+{
+    public T create();
+
+    public void destroy(T instance);    
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Contextual.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java?rev=735300&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java
Sat Jan 17 07:12:37 2009
@@ -0,0 +1,23 @@
+/*
+ *  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.webbeans.manager;
+
+public interface CreationalContext<T>
+{
+    public void push(T incompleteInstance);
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/CreationalContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java?rev=735300&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java
Sat Jan 17 07:12:37 2009
@@ -0,0 +1,29 @@
+/*
+ * 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.webbeans.manager;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.webbeans.BindingType;
+
+@BindingType
+@Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.PARAMETER })
+public @interface Deployed
+{
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Deployed.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message