[jboss-cvs] JBossAS SVN: r101771 - in projects/ejb3/trunk/core/src: main/java/org/jboss/ejb3/core and 8 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 3 06:31:46 EST 2010


Author: wolfc
Date: 2010-03-03 06:31:45 -0500 (Wed, 03 Mar 2010)
New Revision: 101771

Added:
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/EJBInvocationContextInterceptor.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBInvocationContextImpl.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceInvocationContextImpl.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionInvocationContextImpl.java
Modified:
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/BeanContext.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBContext.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceBeanContext.java
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionSpecBeanContext.java
   projects/ejb3/trunk/core/src/main/resources/ejb3-interceptors-aop.xml
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree1358/MockBeanContext.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree2020/NewContextBean.java
   projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/threadlocal/MockBeanContext.java
Log:
EJBTHREE-2020: second integration pass

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/BeanContext.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/BeanContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/BeanContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -23,6 +23,7 @@
 
 import org.jboss.aop.metadata.SimpleMetaData;
 import org.jboss.ejb3.context.spi.EJBContext;
+import org.jboss.ejb3.context.spi.InvocationContext;
 import org.jboss.ejb3.interceptor.InterceptorInfo;
 
 /**
@@ -35,6 +36,10 @@
  */
 public interface BeanContext<T extends Container> extends org.jboss.ejb3.interceptors.container.BeanContext<Object>
 {
+   InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate);
+
+   InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate);
+   
    Object getInstance();
 
    T getContainer();

Added: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/EJBInvocationContextInterceptor.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/EJBInvocationContextInterceptor.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/EJBInvocationContextInterceptor.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.core.context;
+
+import org.jboss.aop.joinpoint.Invocation;
+import org.jboss.ejb3.BeanContext;
+import org.jboss.ejb3.EJBContainerInvocation;
+import org.jboss.ejb3.aop.LifeCycleInvocation;
+import org.jboss.ejb3.context.CurrentInvocationContext;
+import org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor;
+import org.jboss.ejb3.interceptors.container.LifecycleMethodInterceptorsInvocation;
+
+import javax.interceptor.InvocationContext;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class EJBInvocationContextInterceptor
+{
+   public Object lifecycleInvocation(Invocation invocation) throws Throwable
+   {
+      // the legacy invocation context
+      final InvocationContext invocationContext = InvocationContextInterceptor.getInvocationContext(invocation);
+      BeanContext<?> beanContext = (BeanContext<?>) ((LifecycleMethodInterceptorsInvocation) invocation).getBeanContext();
+      org.jboss.ejb3.context.spi.InvocationContext currentInvocation = beanContext.createLifecycleInvocation(invocationContext);
+      CurrentInvocationContext.push(currentInvocation);
+      try
+      {
+         return invocation.invokeNext();
+      }
+      finally
+      {
+         CurrentInvocationContext.pop();
+      }
+   }
+   
+   public Object methodInvocation(Invocation invocation) throws Throwable
+   {
+      // the legacy invocation context
+      final InvocationContext invocationContext = InvocationContextInterceptor.getInvocationContext(invocation);
+      BeanContext<?> beanContext = ((EJBContainerInvocation) invocation).getBeanContext();
+      org.jboss.ejb3.context.spi.InvocationContext currentInvocation = beanContext.createMethodInvocation(invocationContext);
+      CurrentInvocationContext.push(currentInvocation);
+      try
+      {
+         return invocation.invokeNext();
+      }
+      finally
+      {
+         CurrentInvocationContext.pop();
+      }
+   }
+}


Property changes on: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/core/context/EJBInvocationContextInterceptor.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBContext.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -23,6 +23,7 @@
 
 import org.jboss.ejb3.BaseContext;
 import org.jboss.ejb3.context.spi.EJBContext;
+import org.jboss.ejb3.context.spi.InvocationContext;
 
 /**
  * Comment
@@ -39,6 +40,16 @@
       super(container, bean);
    }
 
+   public InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new MDBInvocationContextImpl(this, delegate);
+   }
+
+   public InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new MDBInvocationContextImpl(this, delegate);
+   }
+
    public void remove()
    {
    }

Added: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBInvocationContextImpl.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBInvocationContextImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBInvocationContextImpl.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.mdb;
+
+import org.jboss.ejb3.context.base.BaseInvocationContext;
+import org.jboss.ejb3.context.spi.SessionContext;
+
+import javax.interceptor.InvocationContext;
+import java.security.Principal;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class MDBInvocationContextImpl extends BaseInvocationContext
+{
+   private MDBContext ctx;
+   private InvocationContext delegate;
+   
+   public MDBInvocationContextImpl(MDBContext ctx, InvocationContext delegate)
+   {
+      super(delegate.getMethod(), delegate.getMethod() != null ? delegate.getParameters() : null);
+
+      this.ctx = ctx;
+      this.delegate = delegate;
+   }
+
+   // legacy
+   @Override
+   public Principal getCallerPrincipal()
+   {
+      return getEJBContext().getCallerPrincipal();
+   }
+
+   @Override
+   public SessionContext getEJBContext()
+   {
+      return (SessionContext) ctx.getEJBContext();
+   }
+   
+   @Override
+   public Object proceed() throws Exception
+   {
+      return delegate.proceed();
+   }
+}


Property changes on: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/mdb/MDBInvocationContextImpl.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceBeanContext.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceBeanContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceBeanContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -22,6 +22,7 @@
 package org.jboss.ejb3.service;
 
 import org.jboss.ejb3.context.spi.EJBContext;
+import org.jboss.ejb3.context.spi.InvocationContext;
 import org.jboss.ejb3.session.SessionBeanContext;
 
 /**
@@ -35,6 +36,16 @@
       super(container, bean);
    }
 
+   public InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new ServiceInvocationContextImpl(this, delegate);
+   }
+
+   public InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new ServiceInvocationContextImpl(this, delegate);
+   }
+
    public void remove()
    {
 

Added: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceInvocationContextImpl.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceInvocationContextImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceInvocationContextImpl.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.service;
+
+import org.jboss.ejb3.context.base.BaseInvocationContext;
+import org.jboss.ejb3.context.spi.SessionContext;
+
+import javax.interceptor.InvocationContext;
+import java.security.Principal;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class ServiceInvocationContextImpl extends BaseInvocationContext
+{
+   private ServiceBeanContext ctx;
+   private InvocationContext delegate;
+
+   public ServiceInvocationContextImpl(ServiceBeanContext ctx, InvocationContext delegate)
+   {
+      super(delegate.getMethod(), delegate.getMethod() != null ? delegate.getParameters() : null);
+
+      this.ctx = ctx;
+      this.delegate = delegate;
+   }
+
+   // legacy
+   @Override
+   public Principal getCallerPrincipal()
+   {
+      return getEJBContext().getCallerPrincipal();
+   }
+
+   @Override
+   public SessionContext getEJBContext()
+   {
+      return (SessionContext) ctx.getEJBContext();
+   }
+
+   @Override
+   public Object proceed() throws Exception
+   {
+      return delegate.proceed();
+   }
+}


Property changes on: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/service/ServiceInvocationContextImpl.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionInvocationContextImpl.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionInvocationContextImpl.java	                        (rev 0)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionInvocationContextImpl.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.session;
+
+import org.jboss.ejb3.context.base.BaseSessionInvocationContext;
+import org.jboss.ejb3.context.spi.SessionContext;
+
+import javax.interceptor.InvocationContext;
+import javax.xml.rpc.handler.MessageContext;
+import java.security.Principal;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class SessionInvocationContextImpl<C extends SessionSpecContainer> extends BaseSessionInvocationContext
+{
+   private SessionSpecBeanContext<C> ctx;
+   private InvocationContext delegate;
+   
+   public SessionInvocationContextImpl(SessionSpecBeanContext<C> ctx, InvocationContext delegate)
+   {
+      // we override getInvokedBusinessInterface, because we can't verify here whether it's an EJB 3 view invocation
+      super(null, delegate.getMethod(), delegate.getMethod() != null ? delegate.getParameters() : null);
+
+      this.ctx = ctx;
+      this.delegate = delegate;
+   }
+
+   @Override
+   public Class<?> getInvokedBusinessInterface() throws IllegalStateException
+   {
+      return ctx.getContainer().getInvokedBusinessInterface();
+   }
+
+   // legacy
+   @Override
+   public Principal getCallerPrincipal()
+   {
+      return getEJBContext().getCallerPrincipal();
+   }
+
+   @Override
+   public SessionContext getEJBContext()
+   {
+      return (SessionContext) ctx.getEJBContext();
+   }
+
+   // legacy
+   @Override
+   public MessageContext getMessageContext() throws IllegalStateException
+   {
+      return getEJBContext().getMessageContext();
+   }
+
+   @Override
+   public Object proceed() throws Exception
+   {
+      return delegate.proceed();
+   }
+}


Property changes on: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionInvocationContextImpl.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionSpecBeanContext.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionSpecBeanContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/session/SessionSpecBeanContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -21,6 +21,8 @@
  */
 package org.jboss.ejb3.session;
 
+import org.jboss.ejb3.context.spi.InvocationContext;
+
 /**
  * Context for Session Beans adhering to EJB3 Specification (SFSB, SLSB)
  * 
@@ -52,4 +54,13 @@
       
    }
 
+   public InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new SessionInvocationContextImpl(this, delegate);
+   }
+
+   public InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      return new SessionInvocationContextImpl(this, delegate);
+   }
 }

Modified: projects/ejb3/trunk/core/src/main/resources/ejb3-interceptors-aop.xml
===================================================================
--- projects/ejb3/trunk/core/src/main/resources/ejb3-interceptors-aop.xml	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/main/resources/ejb3-interceptors-aop.xml	2010-03-03 11:31:45 UTC (rev 101771)
@@ -78,6 +78,7 @@
    <!--  EJBTHREE-1841 No longer needed in core
    <aspect name="InterceptorsFactory" factory="org.jboss.ejb3.interceptors.aop.InterceptorsFactory" scope="PER_INSTANCE"/> -->
    <aspect name="InvocationContextInterceptor" class="org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor" scope="PER_VM"/>
+   <aspect name="EJBInvocationContextInterceptor" class="org.jboss.ejb3.core.context.EJBInvocationContextInterceptor" scope="PER_VM"/>
 
    <!-- TODO: this is actually the bootstrap container -->
    <domain name="Intercepted Bean">
@@ -125,6 +126,7 @@
 
          <advice name="setup" aspect="InvocationContextInterceptor"/>
          <advice name="fillMethod" aspect="InvocationContextInterceptor"/>
+         <advice name="methodInvocation" aspect="EJBInvocationContextInterceptor"/>
          <advice name="aroundInvoke" aspect="InjectInterceptorsFactory"/>
       </stack>
 
@@ -137,6 +139,7 @@
       <stack name="LifecycleCallbackStack">
          <interceptor-ref name="org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor"/>
          <advice name="setup" aspect="InvocationContextInterceptor"/>
+         <advice name="lifecycleInvocation" aspect="EJBInvocationContextInterceptor"/>
       </stack>
    </domain>
 

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree1358/MockBeanContext.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree1358/MockBeanContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree1358/MockBeanContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -23,6 +23,7 @@
 
 import org.jboss.ejb3.BaseContext;
 import org.jboss.ejb3.context.spi.EJBContext;
+import org.jboss.ejb3.context.spi.InvocationContext;
 
 /**
  * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
@@ -35,6 +36,16 @@
       super(container);
    }
    
+   public InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      throw new RuntimeException("NYI");
+   }
+
    public EJBContext getEJBContext()
    {
       // TODO Auto-generated method stub

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree2020/NewContextBean.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree2020/NewContextBean.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree2020/NewContextBean.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -21,6 +21,7 @@
  */
 package org.jboss.ejb3.core.test.ejbthree2020;
 
+import org.jboss.ejb3.context.CurrentEJBContext;
 import org.jboss.ejb3.context.spi.SessionContext;
 
 import javax.annotation.Resource;
@@ -38,6 +39,9 @@
 
    public Class<?> getInvokedBusinessInterface()
    {
+      SessionContext currentCtx = CurrentEJBContext.get(SessionContext.class);
+      if(currentCtx != ctx)
+         throw new IllegalStateException("Encountered wrong ctx " + currentCtx + ", expected " + ctx);
       return ctx.getInvokedBusinessInterface();
    }
 }

Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/threadlocal/MockBeanContext.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/threadlocal/MockBeanContext.java	2010-03-03 10:37:03 UTC (rev 101770)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/threadlocal/MockBeanContext.java	2010-03-03 11:31:45 UTC (rev 101771)
@@ -25,6 +25,7 @@
 import org.jboss.ejb3.BeanContext;
 import org.jboss.ejb3.Container;
 import org.jboss.ejb3.context.spi.EJBContext;
+import org.jboss.ejb3.context.spi.InvocationContext;
 import org.jboss.ejb3.interceptor.InterceptorInfo;
 import org.jboss.logging.Logger;
 
@@ -46,7 +47,17 @@
       
       this.instance = instance;
    }
-   
+
+   public InvocationContext createLifecycleInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public InvocationContext createMethodInvocation(javax.interceptor.InvocationContext delegate)
+   {
+      throw new RuntimeException("NYI");
+   }
+
    @Override
    protected void finalize() throws Throwable
    {




More information about the jboss-cvs-commits mailing list