You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2008/11/22 18:59:43 UTC
svn commit: r719888 [1/2] - in /incubator/openwebbeans/trunk/webbeans-api:
./ src/ src/main/ src/main/java/ src/main/java/META-INF/
src/main/java/javax/ src/main/java/javax/webbeans/
src/main/java/javax/webbeans/manager/ src/main/resources/ src/test/ s...
Author: gerdogdu
Date: Sat Nov 22 09:59:41 2008
New Revision: 719888
URL: http://svn.apache.org/viewvc?rev=719888&view=rev
Log:
Initial import of the webbeans-api.
Added:
incubator/openwebbeans/trunk/webbeans-api/pom.xml (with props)
incubator/openwebbeans/trunk/webbeans-api/src/
incubator/openwebbeans/trunk/webbeans-api/src/main/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentFieldException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentMemberException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentMethodException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentTypeException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NullableDependencyException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/UnproxyableDependencyException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/UnremovedException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/UnsatisfiedDependencyException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/UnserializableDependencyException.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Bean.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Context.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Decorator.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/EnterpriseBeanLookup.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Initialized.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/InterceptionType.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Interceptor.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Manager.java (with props)
incubator/openwebbeans/trunk/webbeans-api/src/main/resources/
incubator/openwebbeans/trunk/webbeans-api/src/test/
incubator/openwebbeans/trunk/webbeans-api/src/test/java/
incubator/openwebbeans/trunk/webbeans-api/src/test/resources/
Added: incubator/openwebbeans/trunk/webbeans-api/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/pom.xml?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/pom.xml (added)
+++ incubator/openwebbeans/trunk/webbeans-api/pom.xml Sat Nov 22 09:59:41 2008
@@ -0,0 +1,8 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache</groupId>
+ <artifactId>webbeans-api</artifactId>
+ <name>webbeans-api</name>
+ <version>1.0.0-SNAPSHOT</version>
+ <description>Web Bean API</description>
+</project>
\ No newline at end of file
Propchange: incubator/openwebbeans/trunk/webbeans-api/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF Sat Nov 22 09:59:41 2008
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,28 @@
+/*
+ * 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 static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Retention(RUNTIME)
+@Target(PARAMETER)
+public @interface AfterTransactionCompletion {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionCompletion.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,28 @@
+/*
+ * 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 static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Retention(RUNTIME)
+@Target(PARAMETER)
+public @interface AfterTransactionFailure {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionFailure.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,28 @@
+/*
+ * 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 static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Retention(RUNTIME)
+@Target(PARAMETER)
+public @interface AfterTransactionSuccess {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AfterTransactionSuccess.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,43 @@
+/*
+ * 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;
+
+public class AmbiguousDependencyException extends DeploymentException
+{
+ private static final long serialVersionUID = -870939668365532685L;
+
+ public AmbiguousDependencyException()
+ {
+ super();
+ }
+
+ public AmbiguousDependencyException(String message)
+ {
+ super(message);
+ }
+
+ public AmbiguousDependencyException(Throwable e)
+ {
+ super(e);
+ }
+
+ public AmbiguousDependencyException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AmbiguousDependencyException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,165 @@
+/*
+ * 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.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.lang.reflect.ParameterizedType;
+import java.lang.reflect.Type;
+
+public abstract class AnnotationLiteral<T extends Annotation> implements Annotation
+{
+
+ private Class<T> annotationType;
+ private Method[] members;
+
+ protected AnnotationLiteral()
+ {
+ Class<?> annotationLiteralSubclass = getAnnotationLiteralSubclass(this.getClass());
+ if (annotationLiteralSubclass == null)
+ {
+ throw new RuntimeException(getClass() + "is not a subclass of AnnotationLiteral ");
+ }
+
+ annotationType = getTypeParameter(annotationLiteralSubclass);
+
+ if (annotationType == null)
+ {
+ throw new RuntimeException(getClass() + " is missing type parameter in AnnotationLiteral");
+ }
+
+ this.members = annotationType.getDeclaredMethods();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Class<?> getAnnotationLiteralSubclass(Class<?> clazz)
+ {
+ Class<?> superclass = clazz.getSuperclass();
+ if (superclass.equals(AnnotationLiteral.class))
+ {
+ return clazz;
+ } else if (superclass.equals(Object.class))
+ {
+ return null;
+ } else
+ {
+ return (getAnnotationLiteralSubclass(superclass));
+ }
+ }
+
+ @SuppressWarnings("unchecked")
+ private static <T> Class<T> getTypeParameter(Class<?> annotationLiteralSuperclass)
+ {
+ Type type = annotationLiteralSuperclass.getGenericSuperclass();
+ if (type instanceof ParameterizedType)
+ {
+ ParameterizedType parameterizedType = (ParameterizedType) type;
+ if (parameterizedType.getActualTypeArguments().length == 1)
+ {
+ return (Class<T>) parameterizedType.getActualTypeArguments()[0];
+ }
+ }
+ return null;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return annotationType;
+ }
+
+ @Override
+ public String toString()
+ {
+ String string = "@" + annotationType().getName() + "(";
+ for (int i = 0; i < members.length; i++)
+ {
+ string += members[i].getName() + "=";
+ string += invoke(members[i], this);
+ if (i < members.length - 1)
+ {
+ string += ",";
+ }
+ }
+ return string + ")";
+ }
+
+ @Override
+ public boolean equals(Object other)
+ {
+ if (other instanceof Annotation)
+ {
+ Annotation that = (Annotation) other;
+ if (this.annotationType().equals(that.annotationType()))
+ {
+ for (Method member : members)
+ {
+ Object thisValue = invoke(member, this);
+ Object thatValue = invoke(member, that);
+ if (!thisValue.equals(thatValue))
+ {
+ return false;
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ /*
+ * The hash code of a primitive value v is equal to
+ * WrapperType.valueOf(v).hashCode(), where WrapperType is the wrapper type
+ * corresponding to the primitive type of v (Byte, Character, Double, Float,
+ * Integer, Long, Short, or Boolean). The hash code of a string, enum,
+ * class, or annotation member-value I v is computed as by calling
+ * v.hashCode(). (In the case of annotation member values, this is a
+ * recursive definition.) The hash code of an array member-value is computed
+ * by calling the appropriate overloading of Arrays.hashCode on the value.
+ * (There is one overloading for each primitive type, and one for object
+ * reference types.)
+ */
+ public int hashCode()
+ {
+ int hashCode = 0;
+ for (Method member : members)
+ {
+ int memberNameHashCode = 127 * member.getName().hashCode();
+ int memberValueHashCode = invoke(member, this).hashCode();
+ hashCode += memberNameHashCode ^ memberValueHashCode;
+ }
+ return hashCode;
+ }
+
+ private static Object invoke(Method method, Object instance)
+ {
+ try
+ {
+ return method.invoke(instance);
+ } catch (IllegalArgumentException e)
+ {
+ throw new ExecutionException("Error checking value of member method " + method.getName() + " on " + method.getDeclaringClass(), e);
+ } catch (IllegalAccessException e)
+ {
+ throw new ExecutionException("Error checking value of member method " + method.getName() + " on " + method.getDeclaringClass(), e);
+ } catch (InvocationTargetException e)
+ {
+ throw new ExecutionException("Error checking value of member method " + method.getName() + " on " + method.getDeclaringClass(), e);
+ }
+ }
+}
\ No newline at end of file
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,35 @@
+/*
+ * 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.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Application wide scope type.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@ScopeType
+@Target( { ElementType.TYPE, ElementType.METHOD })
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ApplicationScoped {
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,28 @@
+/*
+ * 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 static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Retention(RUNTIME)
+@Target(PARAMETER)
+public @interface BeforeTransactionCompletion {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BeforeTransactionCompletion.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,36 @@
+/*
+ * 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.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Meta-annotation used for defining new binding types.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target(value = { ElementType.ANNOTATION_TYPE })
+@Retention(value = RetentionPolicy.RUNTIME)
+@Documented
+public @interface BindingType {
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,47 @@
+/*
+ * 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 javax.webbeans.manager.Context;
+
+/**
+ * If the {@link Context} is not avalaible in the time of
+ * web beans component getting, this exception is thrown.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+public class ContextNotActiveException extends ExecutionException
+{
+
+ private static final long serialVersionUID = 4783816486073845333L;
+
+ public ContextNotActiveException(String message)
+ {
+ super(message);
+ }
+
+ public ContextNotActiveException(Throwable e)
+ {
+ super(e);
+ }
+
+ public ContextNotActiveException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,35 @@
+/*
+ * 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;
+
+public interface Conversation
+{
+ public void begin();
+
+ public void begin(String id);
+
+ public void end();
+
+ public boolean isLongRunning();
+
+ public String getId();
+
+ public long getTimeout();
+
+ public void setTimeout(long milliseconds);
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,35 @@
+/*
+ * 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.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Conversation wide scope type.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@ScopeType
+@Target( { ElementType.TYPE, ElementType.METHOD })
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ConversationScoped {
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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;
+
+public class CreationException extends ExecutionException
+{
+ private static final long serialVersionUID = -3952691051791639005L;
+
+ public CreationException()
+ {
+ super();
+ }
+
+ public CreationException(String message)
+ {
+ super(message);
+ }
+
+ public CreationException(Throwable e)
+ {
+ super(e);
+ }
+
+ public CreationException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/CreationException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,42 @@
+/*
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+* Defines the current instance web beans component in the context.
+*
+* @author gurkanerdogdu
+* @since 1.0
+*/
+@Target( { TYPE, METHOD, PARAMETER, FIELD })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface Current
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java Sat Nov 22 09:59:41 2008
@@ -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.webbeans;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(FIELD)
+@Retention(RUNTIME)
+@Documented
+public @interface Decorates
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java Sat Nov 22 09:59:41 2008
@@ -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.webbeans;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target(value = ElementType.TYPE)
+@Retention(value = RetentionPolicy.RUNTIME)
+@Documented
+@Stereotype
+public @interface Decorator
+{
+
+}
\ No newline at end of file
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,51 @@
+/*
+ * 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;
+
+/**
+ * Defines the exception that is thrown when the definitons
+ * of the web beans component is not logically correct.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+public class DefinitionException extends RuntimeException
+{
+ private static final long serialVersionUID = -6261526411795328050L;
+
+ public DefinitionException()
+ {
+ super();
+ }
+
+ public DefinitionException(String message)
+ {
+ super(message);
+ }
+
+ public DefinitionException(Throwable e)
+ {
+ super(e);
+ }
+
+ public DefinitionException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DefinitionException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,38 @@
+/*
+ * 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.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Some web beans components is not lived without its parent web beans component.
+ * This parent web beans components saves this dependent web beans components in
+ * its {@link Dependent} scope. This annotation is used for marking the web beans
+ * scope as dependent.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@ScopeType(normal=false)
+@Target( { ElementType.TYPE, ElementType.METHOD })
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Dependent {
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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;
+
+public class DeploymentException extends RuntimeException
+{
+ private static final long serialVersionUID = -6635290650256485602L;
+
+ public DeploymentException()
+ {
+ super();
+ }
+
+ public DeploymentException(String message)
+ {
+ super(message);
+ }
+
+ public DeploymentException(Throwable e)
+ {
+ super(e);
+ }
+
+ public DeploymentException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,43 @@
+/*
+ * 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 static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+* <p>
+* Every web beans components has some types. DeploymentType meta annotation is used
+* for definining new component types. There are two default deployment type, these are
+* {@link Production} for application components and {@link Standard} for standart
+* components.
+* </p>
+*
+* @author gurkanerdogdu
+* @since 1.0
+*/
+@Target(ANNOTATION_TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface DeploymentType
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,35 @@
+/*
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+*
+* Specifies the destructor method for the EJB statefull web beans components.
+*
+* @author gurkanerdogdu
+* @since 1.0
+*/
+@Retention(RUNTIME)
+@Target(METHOD)
+public @interface Destructor {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Destructor.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,36 @@
+/*
+ * 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.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Some producer method components defines it disposal method to dispose
+ * its created object. This annotation is used at method parameter that corresponds
+ * to the created producer component instance.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target(ElementType.PARAMETER)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Disposes {
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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;
+
+public class DuplicateBindingTypeException extends ExecutionException
+{
+ private static final long serialVersionUID = 8216920810441408338L;
+
+ public DuplicateBindingTypeException()
+ {
+ super();
+ }
+
+ public DuplicateBindingTypeException(String message)
+ {
+ super(message);
+ }
+
+ public DuplicateBindingTypeException(Throwable e)
+ {
+ super(e);
+ }
+
+ public DuplicateBindingTypeException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/DuplicateBindingTypeException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java Sat Nov 22 09:59:41 2008
@@ -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;
+
+import java.lang.annotation.Annotation;
+
+
+public interface Event<T>
+{
+
+ public void fire(T event, Annotation... bindings);
+
+ public void observe(Observer<T> observer, Annotation... bindings);
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,45 @@
+/*
+ * 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;
+
+public class ExecutionException extends RuntimeException
+{
+
+ private static final long serialVersionUID = -32096734405984195L;
+
+ public ExecutionException()
+ {
+ super();
+ }
+
+ public ExecutionException(String message)
+ {
+ super(message);
+ }
+
+ public ExecutionException(Throwable e)
+ {
+ super(e);
+ }
+
+ public ExecutionException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/ExecutionException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,38 @@
+/*
+ * 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 static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Defines the conditional observers.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target(PARAMETER)
+@Retention(RUNTIME)
+@Documented
+public @interface IfExists
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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;
+
+public class IllegalProductException extends ExecutionException
+{
+ private static final long serialVersionUID = 1490337449170464997L;
+
+ public IllegalProductException()
+ {
+ super();
+ }
+
+ public IllegalProductException(String message)
+ {
+ super(message);
+ }
+
+ public IllegalProductException(Throwable e)
+ {
+ super(e);
+ }
+
+ public IllegalProductException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/IllegalProductException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,43 @@
+/*
+ * 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;
+
+public class InconsistentSpecializationException extends DeploymentException
+{
+ private static final long serialVersionUID = 5398575103682514128L;
+
+ public InconsistentSpecializationException()
+ {
+ super();
+ }
+
+ public InconsistentSpecializationException(String message)
+ {
+ super(message);
+ }
+
+ public InconsistentSpecializationException(Throwable e)
+ {
+ super(e);
+ }
+
+ public InconsistentSpecializationException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InconsistentSpecializationException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java Sat Nov 22 09:59:41 2008
@@ -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.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({METHOD,CONSTRUCTOR})
+@Retention(RUNTIME)
+@Documented
+public @interface Initializer
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,37 @@
+/*
+ * 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 static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Web beans defined interceptor annotation.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Retention(RUNTIME)
+@Target(TYPE)
+@Stereotype
+public @interface Interceptor
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Interceptor.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,38 @@
+/*
+ * 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 static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Defines the web beans interceptor type.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target(ANNOTATION_TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface InterceptorBindingType
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,37 @@
+/*
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Named
+@RequestScoped
+@Production
+@Stereotype
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Model
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,41 @@
+/*
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Specifies the component name.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Named
+{
+
+ public String value() default "";
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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 static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Special binding. It is declared in the injection point.
+ * Every time injection occurs, new instance of the injected component
+ * is created and put into the dependent context.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface New
+{
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,35 @@
+/*
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Defines that the annotation member values is not used in the
+ * equality comparison of the annotations.
+ *
+ * @author <a href="mailto:gurkanerdogdu@yahoo.com">Gurkan Erdogdu</a>
+ * @since 1.0
+ */
+@Retention(RUNTIME)
+@Target(METHOD)
+public @interface NonBinding {
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonBinding.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java?rev=719888&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java (added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java Sat Nov 22 09:59:41 2008
@@ -0,0 +1,44 @@
+/*
+ * 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;
+
+public class NonexistentConstructorException extends DefinitionException
+{
+ private static final long serialVersionUID = 5271502302312280463L;
+
+ public NonexistentConstructorException()
+ {
+ super();
+ }
+
+ public NonexistentConstructorException(String message)
+ {
+ super(message);
+ }
+
+ public NonexistentConstructorException(Throwable e)
+ {
+ super(e);
+ }
+
+ public NonexistentConstructorException(String message, Throwable e)
+ {
+ super(message, e);
+ }
+
+
+}
Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/NonexistentConstructorException.java
------------------------------------------------------------------------------
svn:eol-style = native