Examples of BaseSessionInvocationContext


Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

    }

    @Override
    protected List<Interceptor> applyInjections(Object instance) {
        // TODO: a temporary hack until injection interceptors are in place
        BaseSessionInvocationContext invocationContext = new BaseSessionInvocationContext(null, null, null) {
            @Override
            public Object proceed() throws Exception {
                throw new RuntimeException("Do not call proceed");
            }
        };
        BaseSessionContext instanceContext = new BaseSessionContext(this, instance);
        invocationContext.setEJBContext(instanceContext);
        CurrentInvocationContext.push(invocationContext);
        try {
            return super.applyInjections(instance);
        } finally {
            CurrentInvocationContext.pop();
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

    }

    @Override
    protected List<Interceptor> applyInjections(Object instance) {
        // TODO: a temporary hack until injection interceptors are in place
        BaseSessionInvocationContext invocationContext = new BaseSessionInvocationContext(null, null, null) {
            @Override
            public Object proceed() throws Exception {
                throw new RuntimeException("Do not call proceed");
            }
        };
        BaseSessionContext instanceContext = new BaseSessionContext(this, instance);
        invocationContext.setEJBContext(instanceContext);
        CurrentInvocationContext.push(invocationContext);
        try {
            return super.applyInjections(instance);
        }
        finally {
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

    }

    @Override
    protected List<ComponentInjector.InjectionHandle> applyInjections(ComponentInstance instance) {
        // TODO: a temporary hack until injection interceptors are in place
        BaseSessionInvocationContext invocationContext = new BaseSessionInvocationContext(null, null, null) {
            @Override
            public Object proceed() throws Exception {
                throw new RuntimeException("Do not call proceed");
            }
        };
        invocationContext.setEJBContext(((SessionBeanComponentInstance) instance).getSessionContext());
        CurrentInvocationContext.push(invocationContext);
        try {
            return super.applyInjections(instance);
        } finally {
            CurrentInvocationContext.pop();
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

      return new SessionInjectionInvocation<T>(this, injectors);
   }

   public SessionInvocationContext createLifecycleInvocation()
   {
      return new BaseSessionInvocationContext(null, null, null) {
         @Override
         public Object proceed() throws Exception
         {
            throw new RuntimeException("NYI");
         }
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

      return new SessionInjectionInvocation<ServiceContainer>(this, injectors);
   }

   public SessionInvocationContext createLifecycleInvocation()
   {
      return new BaseSessionInvocationContext(null, null, null) {
         @Override
         public Object proceed() throws Exception
         {
            throw new RuntimeException("NYI");
         }
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

         {
            // FIXME: This is a dirty hack to notify AS EJBTimerService about what's going on
            AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsAssociation.IN_BEFORE_COMPLETION);
           
            // TODO: use interceptors to setup a context
            SessionInvocationContext invocation = new BaseSessionInvocationContext(null, null, null) {
               @Override
               public Object proceed() throws Exception
               {
                  bean.beforeCompletion();
                  return null;
               }
            };
            invocation.setEJBContext(ctx.getEJBContext());
            CurrentInvocationContext.push(invocation);
            try
            {
               invocation.proceed();
            }
            finally
            {
               CurrentInvocationContext.pop();
            }           
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

            return;
         pushEnc();
         try
         {
            // TODO: use interceptors to setup a context
            SessionInvocationContext invocation = new BaseSessionInvocationContext(null, null, null) {
               @Override
               public Object proceed() throws Exception
               {
                  if (status == Status.STATUS_COMMITTED)
                  {
                     bean.afterCompletion(true);
                  }
                  else
                  {
                     bean.afterCompletion(false);
                  }
                  return null;
               }
            };
            invocation.setEJBContext(ctx.getEJBContext());
            CurrentInvocationContext.push(invocation);
            try
            {
               invocation.proceed();
            }
            finally
            {
               CurrentInvocationContext.pop();
            }
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

         {
            // FIXME: This is a dirty hack to notify AS EJBTimerService about what's going on
            AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsAssociation.IN_BEFORE_COMPLETION);
           
            // TODO: use interceptors to setup a context
            SessionInvocationContext invocation = new BaseSessionInvocationContext(null, null, null) {
               @Override
               public Object proceed() throws Exception
               {
                  sync.beforeCompletion();
                  return null;
               }
            };
            invocation.setEJBContext(ctx.getEJBContext());
            CurrentInvocationContext.push(invocation);
            try
            {
               invocation.proceed();
            }
            finally
            {
               CurrentInvocationContext.pop();
            }           
View Full Code Here

Examples of org.jboss.ejb3.context.base.BaseSessionInvocationContext

            return;
         pushEnc();
         try
         {
            // TODO: use interceptors to setup a context
            SessionInvocationContext invocation = new BaseSessionInvocationContext(null, null, null) {
               @Override
               public Object proceed() throws Exception
               {
                  if (status == Status.STATUS_COMMITTED)
                  {
                     sync.afterCompletion(true);
                  }
                  else
                  {
                     sync.afterCompletion(false);
                  }
                  return null;
               }
            };
            invocation.setEJBContext(ctx.getEJBContext());
            CurrentInvocationContext.push(invocation);
            try
            {
               invocation.proceed();
            }
            finally
            {
               CurrentInvocationContext.pop();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.