Examples of Invoke()


Examples of org.jboss.cache.interceptors.InterceptorChain.invoke()

   public static void replicateCommand(CacheSPI cache, VisitableCommand command) throws Throwable
   {
      ComponentRegistry cr = extractComponentRegistry(cache);
      InterceptorChain ic = cr.getComponent(InterceptorChain.class);
      ic.invoke(command);
   }

   public static void blockUntilViewsReceived(int timeout, List caches)
   {
      blockUntilViewsReceived((Cache[]) caches.toArray(new Cache[]{}), timeout);
View Full Code Here

Examples of org.jboss.cache.marshall.MethodCall.invoke()

      if (!MethodDeclarations.isTransactionLifecycleMethod(m.getMethodId()))
      {
         if (trace) log.trace("Passing up method " + m + " so it gets invoked on cache.");
         try
         {
            retval = m.invoke(m.getMethodId() == MethodDeclarations.dataGravitationCleanupMethod_id ? remoteDelegate : cacheImpl);
         }
         catch (Throwable t)
         {
            retval = t;
         }
View Full Code Here

Examples of org.jboss.cache.pojo.util.MethodCall.invoke()

      for (int i = (undoList_.size() - 1); i >= 0; i--)
      {
         MethodCall mc = (MethodCall) undoList_.get(i);
         try
         {
            mc.invoke();
         }
         catch (Throwable t)
         {
            throw new PojoCacheException(
                  "PojoTxSynchronizationHandler.runRollbackPhase(): error: " + t, t);
View Full Code Here

Examples of org.jboss.dependency.spi.dispatch.InvokeDispatchContext.invoke()

      Object result = null;
     
      if (factoryContext instanceof InvokeDispatchContext)
      {
         InvokeDispatchContext idc = (InvokeDispatchContext) factoryContext;
         result = idc.invoke(method, getParameterValues(valueContext, factoryContext), getParameterTypes(valueContext, factoryContext));
      }
      else
      {
         throw new IllegalArgumentException(
               "Cannot use property attribute, context is not InvokeDispatchContext: " + factoryContext +
View Full Code Here

Examples of org.jboss.ejb.Interceptor.invoke()

      }
      // We must set the arguments because args[] may be a copy
      mi.setArguments(args);

      Interceptor next = getNext();
      Object value = next.invoke(mi);
      if( value instanceof Serializable )
      {
         Serializable svalue = (Serializable) value;
         value = new SealedObject(svalue, encryptCipher);
      }
View Full Code Here

Examples of org.jboss.ejb3.ClientKernelAbstraction.invoke()

      stateful.removeMe();
     
      ObjectName deployment = new ObjectName("test.ejb3:name=Bill,service=EJB3");

      ClientKernelAbstraction kernel = KernelAbstractionFactory.getClientInstance();
      kernel.invoke(deployment, "stop", new Object[0], new String[0]);
      kernel.invoke(deployment, "start", new Object[0], new String[0]);
     
      stateful = (Stateful)getInitialContext().lookup("Stateful");
      assertNotNull(stateful);
      stateful.setState("state");
View Full Code Here

Examples of org.jboss.ejb3.KernelAbstraction.invoke()

     
      ObjectName serverPeerName = new ObjectName("jboss.messaging:service=ServerPeer");
     
      KernelAbstraction kernel = KernelAbstractionFactory.getInstance();
      // invoke the server to create the destination
      Object result = kernel.invoke(serverPeerName,
              methodName,
              new Object[]{name, jndiName},
              new String[]{"java.lang.String", "java.lang.String"});
     
      log.debug("result = " + result);
View Full Code Here

Examples of org.jboss.ejb3.embedded.resource.RARDeployment.invoke()

      {
         Object target = entry.getTarget();
         if (target instanceof RARDeployment)
         {
            RARDeployment deployment = (RARDeployment)target;
            return deployment.invoke(operationName, params, signature);
         }
         else
         {
            Class[] types = new Class[signature.length];
            for (int i = 0; i < signature.length; ++i)
View Full Code Here

Examples of org.jboss.ejb3.endpoint.Endpoint.invoke()

      Endpoint endpoint = getInstalledEndpoint();
      assert endpoint != null : "No endpoint associated with context " + this.endpointContext
            + " - cannot invoke the method on bean";

      // finally pass-on the control to the endpoint
      return endpoint.invoke(this.session, null, method, args);
   }

   /**
    * Returns the context corresponding to the container, associated with this invocation handler
    *
 
View Full Code Here

Examples of org.jboss.ejb3.endpoint.reflect.EndpointInvocationHandler.invoke()

      Class<SimpleInterface> businessInterface = null;
      InvocationHandler handler = new EndpointInvocationHandler(endpoint, session, businessInterface);
      Object proxy = null;
      Method method = Object.class.getDeclaredMethod("hashCode");
      Object args[] = null;
      int result = (Integer) handler.invoke(proxy, method, args);
      assertEquals(createHashCode(endpoint, session, businessInterface), result);
   }

   @Test
   public void testHashCodeWithBusinessInterface() throws Exception
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.