Skip to content
Browse files

Add some necessary annotations to be a valid @Qualifier

  • Loading branch information...
1 parent e500bdb commit b7b27d5389f737c68edc8d7d35cb8fad99171c18 @sauthieg committed Feb 9, 2011
View
9 weld-osgi-api/src/main/java/org/jboss/weld/environment/osgi/api/extension/Publish.java
@@ -1,6 +1,9 @@
package org.jboss.weld.environment.osgi.api.extension;
-import static java.lang.annotation.ElementType.TYPE;
+import javax.enterprise.util.Nonbinding;
+import javax.inject.Qualifier;
+
+import static java.lang.annotation.ElementType.*;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -10,8 +13,10 @@
*
* @author Mathieu ANCELIN - SERLI (mathieu.ancelin@serli.com)
*/
-@Target({ TYPE })
+@Qualifier
+@Target({FIELD,METHOD,PARAMETER,TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Publish {
+ @Nonbinding
public Class[] contracts() default {};
}

0 comments on commit b7b27d5

Please sign in to comment.
Something went wrong with that request. Please try again.