[jboss-cvs] JBossAS SVN: r82278 - projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 15 08:46:09 EST 2008


Author: wolfc
Date: 2008-12-15 08:46:09 -0500 (Mon, 15 Dec 2008)
New Revision: 82278

Modified:
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceSessionContextImpl.java
Log:
EJBTHREE-1630: implementing SessionContext, not all functions are supported yet

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceSessionContextImpl.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceSessionContextImpl.java	2008-12-15 13:36:58 UTC (rev 82277)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceSessionContextImpl.java	2008-12-15 13:46:09 UTC (rev 82278)
@@ -21,6 +21,11 @@
  */
 package org.jboss.ejb3.service;
 
+import javax.ejb.EJBLocalObject;
+import javax.ejb.EJBObject;
+import javax.ejb.SessionContext;
+import javax.xml.rpc.handler.MessageContext;
+
 import org.jboss.ejb3.EJBContextImpl;
 
 /**
@@ -28,6 +33,7 @@
  * @version $Revision: $
  */
 public class ServiceSessionContextImpl extends EJBContextImpl<ServiceContainer, ServiceBeanContext>
+   implements SessionContext
 {
    /**
     * @param beanContext
@@ -36,4 +42,29 @@
    {
       super(beanContext);
    }
+
+   public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
+   {
+      return container.getBusinessObject(beanContext, businessInterface);
+   }
+
+   public EJBLocalObject getEJBLocalObject() throws IllegalStateException
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public EJBObject getEJBObject() throws IllegalStateException
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public Class<?> getInvokedBusinessInterface() throws IllegalStateException
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public MessageContext getMessageContext() throws IllegalStateException
+   {
+      throw new RuntimeException("NYI");
+   }
 }




More information about the jboss-cvs-commits mailing list