openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r786226 - in /incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax: enterprise/context/ enterprise/event/ enterprise/inject/ enterprise/inject/spi/ inject/
Date Thu, 18 Jun 2009 19:48:13 GMT
Author: gerdogdu
Date: Thu Jun 18 19:48:12 2009
New Revision: 786226

URL: http://svn.apache.org/viewvc?rev=786226&view=rev
Log:
Update/Add some API for last draft.

Added:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextException.java
  (with props)
Removed:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/DuplicateBindingTypeException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/DefinitionException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/DeploymentException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/ExecutionException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/InconsistentSpecializationException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/NullableDependencyException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/UnserializableDependencyException.java
Modified:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextNotActiveException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/ObserverException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/AnnotationLiteral.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/InjectionException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/New.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/TypeLiteral.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/UnsatisfiedResolutionException.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/Bean.java

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextException.java?rev=786226&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextException.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextException.java
Thu Jun 18 19:48:12 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.enterprise.context;
+
+public class ContextException extends RuntimeException 
+{
+	public ContextException()
+	{
+		
+	}
+	
+	public ContextException(String message)
+	{
+		super(message);
+	}
+
+	public ContextException(String message, Throwable cause)
+	{
+		super(message, cause);
+	}
+
+	public ContextException(Throwable cause)
+	{
+		super(cause);
+	}
+
+
+}

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

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextNotActiveException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextNotActiveException.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextNotActiveException.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/context/ContextNotActiveException.java
Thu Jun 18 19:48:12 2009
@@ -16,7 +16,6 @@
 import javax.enterprise.context.spi.Context;
 import javax.enterprise.context.spi.Contextual;
 import javax.enterprise.context.spi.CreationalContext;
-import javax.inject.ExecutionException;
 
 /**
  * It is used by the <code>Context</code> interface.
@@ -25,7 +24,7 @@
  * @see Context#get(Contextual, CreationalContext)
  * @see Context#get(Contextual)
  */
-public class ContextNotActiveException extends ExecutionException
+public class ContextNotActiveException extends ContextException
 {
 
     private static final long serialVersionUID = 4783816486073845333L;

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/ObserverException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/ObserverException.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/ObserverException.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/ObserverException.java
Thu Jun 18 19:48:12 2009
@@ -13,9 +13,8 @@
  */
 package javax.enterprise.event;
 
-import javax.inject.ExecutionException;
 
-public class ObserverException extends ExecutionException
+public class ObserverException extends RuntimeException
 {
     private static final long serialVersionUID = -6392759733390664652L;
 

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/AnnotationLiteral.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/AnnotationLiteral.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/AnnotationLiteral.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/AnnotationLiteral.java
Thu Jun 18 19:48:12 2009
@@ -18,8 +18,6 @@
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
 
-import javax.inject.ExecutionException;
-
 /**
  * 
  *
@@ -64,13 +62,13 @@
                 }
                 else
                 {
-                    throw new ExecutionException("Not class type");
+                    throw new RuntimeException("Not class type");
                 }
 
             }
             else
             {
-                throw new ExecutionException("More than one parametric type");
+                throw new RuntimeException("More than one parametric type");
             }
 
         }
@@ -136,7 +134,7 @@
         }
         catch (Exception e)
         {
-            throw new ExecutionException("Exception in method call : " + method.getName());
+            throw new RuntimeException("Exception in method call : " + method.getName());
         }
         finally
         {

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/InjectionException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/InjectionException.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/InjectionException.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/InjectionException.java
Thu Jun 18 19:48:12 2009
@@ -1,23 +1,21 @@
 /*
- *  Copyright 2009 gurkanerdogdu.
- * 
- *  Licensed 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.
- *  under the License.
+ * 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;
 
 /**
  * Injection exception class.
+ * 
  * @version $Rev$ $Date$
  */
 public class InjectionException extends RuntimeException

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/New.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/New.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/New.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/New.java
Thu Jun 18 19:48:12 2009
@@ -28,5 +28,5 @@
 @BindingType
 public @interface New
 {
-
+	
 }

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/TypeLiteral.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/TypeLiteral.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/TypeLiteral.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/TypeLiteral.java
Thu Jun 18 19:48:12 2009
@@ -17,8 +17,6 @@
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
 
-import javax.inject.ExecutionException;
-
 
 @SuppressWarnings("unchecked")
 public abstract class TypeLiteral<T>
@@ -55,7 +53,7 @@
         }
         else
         {
-            throw new ExecutionException("Illegal type for the Type Literal Class");
+            throw new RuntimeException("Illegal type for the Type Literal Class");
         }
 
         return rawType;
@@ -67,14 +65,14 @@
 
         if (clazz == null)
         {
-            throw new ExecutionException("Class parameter clazz can not be null");
+            throw new RuntimeException("Class parameter clazz can not be null");
         }
 
         Type superClazz = clazz.getGenericSuperclass();
 
         if (superClazz.equals(Object.class))
         {
-            throw new ExecutionException("Super class must be parametrized type");
+            throw new RuntimeException("Super class must be parametrized type");
         }
         else if (superClazz instanceof ParameterizedType)
         {
@@ -88,7 +86,7 @@
             }
             else
             {
-                throw new ExecutionException("More than one parametric type");
+                throw new RuntimeException("More than one parametric type");
             }
 
         }

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/UnsatisfiedResolutionException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/UnsatisfiedResolutionException.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/UnsatisfiedResolutionException.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/UnsatisfiedResolutionException.java
Thu Jun 18 19:48:12 2009
@@ -13,7 +13,6 @@
  */
 package javax.enterprise.inject;
 
-import javax.inject.DeploymentException;
 
 /**
  * If injection point is not resolved by the container, it throws
@@ -21,7 +20,7 @@
  * 
  * @version $Rev$ $Date$
  */
-public class UnsatisfiedResolutionException extends DeploymentException
+public class UnsatisfiedResolutionException extends ResolutionException
 {
     private static final long serialVersionUID = 8476513814387375212L;
 

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/Bean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/Bean.java?rev=786226&r1=786225&r2=786226&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/Bean.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/Bean.java
Thu Jun 18 19:48:12 2009
@@ -48,5 +48,7 @@
     public abstract boolean isNullable();
 
     public abstract Set<InjectionPoint> getInjectionPoints();
+    
+    public abstract Class<?> getBeanClass();
 
 }
\ No newline at end of file



Mime
View raw message