openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r782251 [2/2] - in /incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax: annotation/ context/ decorator/ enterprise/ enterprise/context/ enterprise/context/spi/ enterprise/event/ enterprise/inject/ enterprise/inject/deployment/ en...
Date Sat, 06 Jun 2009 12:59:26 GMT
Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/stereotype/Stereotype.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/stereotype/Stereotype.java?rev=782251&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/stereotype/Stereotype.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/stereotype/Stereotype.java
Sat Jun  6 12:59:23 2009
@@ -0,0 +1,56 @@
+/*
+ * 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.stereotype;
+
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Annotation;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+
+/**
+ * Steretypes are used for inheriting the meta annotations
+ * that are defined on the stereotyped annotation from another webbeans
+ * component.
+ * 
+ * <p>
+ * It defines two member variables, namely
+ * <ul>
+ * <li>supportedScopes for restricting the webbeans scope</li>
+ * <li>requiredTypes for restricting the webbeans API type</li>
+ * </ul>
+ * </p>
+ * 
+ * <p>
+ * If a bean annotated with multiple stereotypes, it obeys the all of the
+ * stereotypes restrictions.
+ * </p>
+ * 
+ * @see Model
+ */
+@Retention(RUNTIME)
+@Target(ANNOTATION_TYPE)
+@Documented
+public @interface Stereotype
+{
+    /**Supported scopes of the stereotype*/
+    public Class<? extends Annotation>[] supportedScopes() default {};
+
+    /**Required API type for the webbeans*/
+    public Class<?>[] requiredTypes() default {};
+
+}

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

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/event/Fires.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/event/Fires.java?rev=782251&r1=782250&r2=782251&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/event/Fires.java (original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/event/Fires.java Sat Jun
 6 12:59:23 2009
@@ -22,7 +22,7 @@
 import java.lang.annotation.Retention;
 import java.lang.annotation.Target;
 
-import javax.inject.BindingType;
+import javax.enterprise.inject.BindingType;
 
 @BindingType
 @Retention(RUNTIME)

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/Obtains.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/Obtains.java?rev=782251&r1=782250&r2=782251&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/Obtains.java (original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/Obtains.java Sat
Jun  6 12:59:23 2009
@@ -19,6 +19,8 @@
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
+import javax.enterprise.inject.BindingType;
+
 @BindingType
 @Retention(RetentionPolicy.RUNTIME)
 @Target( { ElementType.METHOD, ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER
})

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Deployed.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Deployed.java?rev=782251&r1=782250&r2=782251&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Deployed.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Deployed.java
Sat Jun  6 12:59:23 2009
@@ -18,7 +18,7 @@
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
-import javax.inject.BindingType;
+import javax.enterprise.inject.BindingType;
 
 @BindingType
 @Retention(RetentionPolicy.RUNTIME)

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Initialized.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Initialized.java?rev=782251&r1=782250&r2=782251&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Initialized.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/inject/manager/Initialized.java
Sat Jun  6 12:59:23 2009
@@ -20,7 +20,7 @@
 import java.lang.annotation.Retention;
 import java.lang.annotation.Target;
 
-import javax.inject.BindingType;
+import javax.enterprise.inject.BindingType;
 
 @BindingType
 @Retention(RUNTIME)

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/interceptor/Interceptor.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/interceptor/Interceptor.java?rev=782251&r1=782250&r2=782251&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/interceptor/Interceptor.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/interceptor/Interceptor.java
Sat Jun  6 12:59:23 2009
@@ -22,7 +22,7 @@
 import java.lang.annotation.Retention;
 import java.lang.annotation.Target;
 
-import javax.annotation.Stereotype;
+import javax.enterprise.inject.stereotype.Stereotype;
 
 @Retention(RUNTIME)
 @Target({TYPE,METHOD,FIELD})



Mime
View raw message