Author: scabanovich
Date: 2011-05-12 19:05:11 -0400 (Thu, 12 May 2011)
New Revision: 31280
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
Log:
JBIDE-8935
https://issues.jboss.org/browse/JBIDE-8935
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java 2011-05-12
23:04:33 UTC (rev 31279)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/definition/SeamBeansDefinition.java 2011-05-12
23:05:11 UTC (rev 31280)
@@ -109,7 +109,18 @@
mergeTypeDefinition(def, typeDef, context);
typeDefinitions.add(typeDef);
- }
+ }
+
+ for (SeamVirtualFieldDefinition def: virtualFieldDefinitions) {
+ IType type = def.getType();
+ TypeDefinition typeDef = new TypeDefinition();
+ int flags = AbstractMemberDefinition.FLAG_NO_ANNOTATIONS;
+ typeDef.setType(type, context.getRootContext(), flags);
+ mergeAnnotations(def, typeDef, context);
+ //That is how field producers differ from class beans. They do not need a bean
constructor.
+ typeDef.setBeanConstructor(true);
+ typeDefinitions.add(typeDef);
+ }
}
public void clean(ConfigDefinitionContext context) {