Examples of invoke()


Examples of org.jboss.aop.ClassAdvisor.invoke()

      if (target instanceof Advised)
      {
         ClassAdvisor advisor = (ClassAdvisor)((Advised)target)._getAdvisor();
         // We will have already gone through the interceptor chain so just invoke on the
         // object.
         return advisor.invoke(invocation);
      }
      else
      {
         if (invocation instanceof MethodInvocation)
         {
View Full Code Here

Examples of org.jboss.arquillian.container.test.spi.ContainerMethodExecutor.invoke()

      else
      {
         protocolConfiguration = protocol.createProtocolConfiguration();
      }
      ContainerMethodExecutor executor = getContainerMethodExecutor(protocol, protocolConfiguration);
      testResult.set(executor.invoke(event.getExecutor()));
   }

   // TODO: cast to raw type to get away from generic issue..
   @SuppressWarnings({"unchecked", "rawtypes"})
   public ContainerMethodExecutor getContainerMethodExecutor(ProtocolDefinition protocol, ProtocolConfiguration protocolConfiguration)
View Full Code Here

Examples of org.jboss.arquillian.core.spi.ObserverMethod.invoke()

         {
            ObserverMethod observer = observers.get(i);
            try
            {
               debug(observer, false);
               observer.invoke(this, event);
            }
            catch (Exception e)
            {
               // getCause(InocationTargetException).getCause(RealCause);
               Throwable toBeFired = e.getCause();
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.ObserverMethod.invoke()

      }
      else
      {
         ObserverMethod interceptor = interceptors.get(currentInterceptor++);
         manager.debug(interceptor, true);
         interceptor.invoke(manager, this);
      }
   }
  
   private void invokeObservers()
   {
View Full Code Here

Examples of org.jboss.arquillian.spi.ContainerMethodExecutor.invoke()

   public void callback(Context context, Test event) throws Exception
   {
      ContainerMethodExecutor executor = context.get(ContainerMethodExecutor.class);
      Validate.stateNotNull(executor, "No " + ContainerMethodExecutor.class.getName() + " found in context");
     
      TestResult result = executor.invoke(event.getTestMethodExecutor());
      context.add(TestResult.class, result);
   }
}
View Full Code Here

Examples of org.jboss.as.ee.component.ComponentView.invoke()

                    @Override
                    protected Object runInvocation() throws Exception {
                        setSecurityContextOnAssociation(securityContext);
                        try {
                            return view.invoke(context);
                        } finally {
                            clearSecurityContextOnAssociation();
                        }
                    }
                };
View Full Code Here

Examples of org.jboss.as.ejb3.component.session.SessionBeanComponent.invoke()

         // TODO: should we know it is MethodIntf.SERVICE_ENDPOINT?
         final Class<?> invokedBusinessInterface = null;
         final Method implMethod = ejbContainer.getComponentMethod(seiMethod);
         final Object[] args = wsInvocation.getArgs();
         // invoke method
         final Object retObj = ejbContainer.invoke(sessionId, contextData, invokedBusinessInterface, implMethod, args);
         wsInvocation.setReturnValue(retObj);
      }
      catch (Throwable t) {
         this.log.error("Method invocation failed with exception: " + t.getMessage(), t);
         this.handleInvocationException(t);
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.TimerImpl.invoke()

            @Override
            void executeRuntime(OperationContext context, ModelNode operation) throws OperationFailedException {
                // This will invoke timer in 'management-handler-thread'
                final TimerImpl timer = getTimer(context, operation);
                timer.invoke();
                context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
            }
        });
    }
View Full Code Here

Examples of org.jboss.aspects.remoting.ClusteredPojiProxy.invoke()

      Object oid = new Object();
      LoadBalancePolicy lbp = new RoundRobin();
      InvokerLocator uri = new InvokerLocator(MOCK_URI);
      ClusteredPojiProxy proxy = new ClusteredPojiProxy(oid, uri, new Interceptor[]{interceptor}, wrapper, lbp, FAMILY_BASE, originTarget);
     
      assertEquals(OK, proxy.invoke(this, Object.class.getDeclaredMethod("toString", new Class[]{}), new Object[]{}));
     
      List<SimpleMetaData> history = interceptor.getInvocationHistory();
      SimpleMetaData metadata = history.get(0);
      assertSame(wrapper, metadata.getMetaData(ClusterConstants.CLUSTERED_REMOTING, ClusterConstants.CLUSTER_FAMILY_WRAPPER));
      assertSame(lbp, metadata.getMetaData(ClusterConstants.CLUSTERED_REMOTING, ClusterConstants.LOADBALANCE_POLICY));
View Full Code Here

Examples of org.jboss.beans.info.spi.BeanInfo.invoke()

      BeanInfo beanInfo = getBeanInfo(BeanInfoProperties.class);
      assertNotNull(beanInfo);
      String invoked = "invoked";
      BeanInfoProperties bean = assertInstanceOf(beanInfo.newInstance(), BeanInfoProperties.class);
      bean.notInvoked = invoked;
      assertTrue(invoked == beanInfo.invoke(bean, "getInvoked"));
   }

   public void testInvokeWithParameters() throws Throwable
   {
      BeanInfo beanInfo = getBeanInfo(BeanInfoProperties.class);
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.