Author: scabanovich
Date: 2012-05-18 17:46:30 -0400 (Fri, 18 May 2012)
New Revision: 41171
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeanMemberDefinition.java
Log:
JBIDE-11552
https://issues.jboss.org/browse/JBIDE-11552
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeanMemberDefinition.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeanMemberDefinition.java 2012-05-18
21:43:53 UTC (rev 41170)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeanMemberDefinition.java 2012-05-18
21:46:30 UTC (rev 41171)
@@ -15,6 +15,7 @@
public class BeanMemberDefinition extends AbstractMemberDefinition {
AbstractTypeDefinition typeDefinition;
+ boolean isCDIAnnotated;
public BeanMemberDefinition() {}
@@ -28,9 +29,17 @@
}
public boolean isCDIAnnotated() {
- return getInjectAnnotation() != null || getProducesAnnotation() != null;
+ return isCDIAnnotated || getInjectAnnotation() != null || getProducesAnnotation() !=
null;
}
+ /**
+ * Called by extensions that detect relevant annotations.
+ * @param b
+ */
+ public void setCDIAnnotated(boolean b) {
+ isCDIAnnotated = b;
+ }
+
public AnnotationDeclaration getProducesAnnotation() {
return annotationsByType.get(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME);
}