Package org.jboss.ejb3.context.spi

Examples of org.jboss.ejb3.context.spi.InvocationContext


         Kernel sanders = this.kernel;
         assert sanders != null : Kernel.class.getSimpleName() + " must be provided in order to bind "
               + Ejb3Registrar.class.getSimpleName();

         // Create an EJB3 Registrar
         Ejb3Registrar registrar = new Ejb3McRegistrar(sanders);

         // Bind Registrar to the Locator
         Ejb3RegistrarLocator.bindRegistrar(registrar);
        
         // Log
View Full Code Here


      {
         SessionProxyInvocationHandler handler = (SessionProxyInvocationHandler) Proxy.getInvocationHandler(reference);
         id = (Serializable) handler.getTarget();
      }

      @Deprecated
      Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();

      // Get the resolver
      EndpointResolver resolver = registrar.lookup(MC_BIND_NAME_ENDPOINT_RESOLVER, EndpointResolver.class);
      this.ejbClassName = descriptor.getBeanClass().getSimpleName();
      endpointMcBindName = resolver.resolve(deploymentUnit, ejbClassName);
      this.stateful = descriptor.isStateful();
   }
View Full Code Here

      }
   }

   private Endpoint getEndpoint()
   {
      @Deprecated
      Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();
      return registrar.lookup(endpointMcBindName, Endpoint.class);
   }
View Full Code Here

         Kernel sanders = this.kernel;
         assert sanders != null : Kernel.class.getSimpleName() + " must be provided in order to bind "
               + Ejb3Registrar.class.getSimpleName();

         // Create an EJB3 Registrar
         Ejb3Registrar registrar = new Ejb3McRegistrar(sanders);

         // Bind Registrar to the Locator
         Ejb3RegistrarLocator.bindRegistrar(registrar);
        
         // Log
View Full Code Here

   @Override
   public EnterpriseBeanEffigy getEffigy()
   {
      // you've got to love the compiler
      InvocationContext ctx = ((org.jboss.ejb3.core.context.EJBInvocation) this).getInvocationContext();
      return ((EJBContainer) ctx.getEJBContext().getManager()).getEffigy();
   }
View Full Code Here

      return getCurrentInvocationContext().getContextData();
   }

   protected InvocationContext getCurrentInvocationContext()
   {
      InvocationContext current = CurrentInvocationContext.get(InvocationContext.class);
      assert current.getEJBContext() == this;
      return current;
   }
View Full Code Here

    @Override
    public Object processInvocation(InterceptorContext context) throws Exception {
        Method method = context.getMethod();
        Object[] parameters = context.getParameters();
        InvocationContext invocationContext = new CustomInvocationContext(context, method, parameters);
        context.putPrivateData(InvocationContext.class, invocationContext);
        CurrentInvocationContext.push(invocationContext);
        try {
            return context.proceed();
        }
View Full Code Here

    * </p>
    * @return
    */
   protected boolean isLifecycleCallbackInvocation()
   {
      InvocationContext currentInvocationContext = null;
      try
      {
         currentInvocationContext = CurrentInvocationContext.get();
      }
      catch (IllegalStateException ise)
      {
         // no context info available so return false
         return false;
      }
      // If the method in current invocation context is null,
      // then it represents a lifecycle callback invocation
      Method invokedMethod = currentInvocationContext.getMethod();
      if (invokedMethod == null)
      {
         // it's a lifecycle callback
         return true;
      }
View Full Code Here

     
   }
  
   private boolean isSingletonBeanInvocation()
   {
      InvocationContext currentInvocationContext = null;
      try
      {
         currentInvocationContext = CurrentInvocationContext.get();
        
         if (currentInvocationContext instanceof TimerServiceInvocationContext)
View Full Code Here

    @Override
    public Object processInvocation(InterceptorContext context) throws Exception {
        Method method = context.getMethod();
        Object[] parameters = context.getParameters();
        InvocationContext invocationContext = new CustomInvocationContext(context, method, parameters);
        context.putPrivateData(InvocationContext.class, invocationContext);
        CurrentInvocationContext.push(invocationContext);
        try {
            return context.proceed();
        } finally {
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.context.spi.InvocationContext

Copyright © 2018 www.massapicom. 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.