Author: scabanovich
Date: 2009-12-15 12:20:24 -0500 (Tue, 15 Dec 2009)
New Revision: 19285
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/SessionBean.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4943
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/SessionBean.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/SessionBean.java 2009-12-15
17:00:07 UTC (rev 19284)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/SessionBean.java 2009-12-15
17:20:24 UTC (rev 19285)
@@ -6,13 +6,12 @@
public class SessionBean extends ClassBean implements ISessionBean {
public IAnnotation getStatefulDeclaration() {
- // TODO Auto-generated method stub
- return null;
+ AnnotationDeclaration stateful = getDefinition().getStatefulAnnotation();
+ return stateful != null ? stateful.getDeclaration() : null;
}
public boolean isStateful() {
- // TODO Auto-generated method stub
- return false;
+ return getDefinition().getStatefulAnnotation() != null;
}
}