Author: scabanovich
Date: 2007-07-13 03:18:24 -0400 (Fri, 13 Jul 2007)
New Revision: 2419
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/ClassScanner.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/TypeScanner.java
Log:
EXIN-217 Annotation @Entity processed.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java 2007-07-13
06:41:45 UTC (rev 2418)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java 2007-07-13
07:18:24 UTC (rev 2419)
@@ -331,6 +331,16 @@
}
}
+ public void setEntity(ValueInfo value) {
+ attributes.put("entity", value);
+ setEntity(value != null && "true".equals(value.getValue()));
+ }
+
+ public void setStateful(ValueInfo value) {
+ attributes.put("stateful", value);
+ setStateful(value != null && "true".equals(value.getValue()));
+ }
+
public void open() {
if(type == null) return;
try {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-13
06:41:45 UTC (rev 2418)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-13
07:18:24 UTC (rev 2419)
@@ -91,9 +91,14 @@
stateful.value = "true";
stateful.valueStartPosition = as[i].getAnnotation().getStartPosition();
stateful.valueLength = as[i].getAnnotation().getLength();
- component.setStateful(true);
+ component.setStateful(stateful);
+ } else if(ENTITY_ANNOTATION_TYPE.equals(type)) {
+ ValueInfo entity = new ValueInfo();
+ entity.value = "true";
+ entity.valueStartPosition = as[i].getAnnotation().getStartPosition();
+ entity.valueLength = as[i].getAnnotation().getLength();
+ component.setEntity(entity);
}
- //TODO entity
}
processFactories();
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/ClassScanner.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/ClassScanner.java 2007-07-13
06:41:45 UTC (rev 2418)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/ClassScanner.java 2007-07-13
07:18:24 UTC (rev 2419)
@@ -128,6 +128,10 @@
if(a != null) {
component.setStateful(true);
}
+ a = map.get(ENTITY_ANNOTATION_TYPE);
+ if(a != null) {
+ component.setEntity(true);
+ }
}
Method[] ms = null;
try {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/TypeScanner.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/TypeScanner.java 2007-07-13
06:41:45 UTC (rev 2418)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/lib/TypeScanner.java 2007-07-13
07:18:24 UTC (rev 2419)
@@ -139,6 +139,10 @@
if(a != null) {
component.setStateful(true);
}
+ a = map.get(ENTITY_ANNOTATION_TYPE);
+ if(a != null) {
+ component.setEntity(true);
+ }
}
IBinaryMethod[] ms = null;
try {
Show replies by date