Examples of dispatch()


Examples of org.jboss.joinpoint.spi.FieldSetJoinpoint.dispatch()

    * @throws Throwable for any error
    */
   public static void configure(Object object, JoinpointFactory jpf, String name, Object value) throws Throwable
   {
      FieldSetJoinpoint joinpoint = getFieldSetJoinpoint(object, jpf, name, value);
      joinpoint.dispatch();
   }

   /**
    * Unconfigure a field
    *
 
View Full Code Here

Examples of org.jboss.joinpoint.spi.MethodJoinpoint.dispatch()

    * @throws Throwable for any error
    */
   public static Object invoke(Object object, JoinpointFactory jpf, String name, String[] paramTypes, Object[] params) throws Throwable
   {
      MethodJoinpoint joinpoint = getMethodJoinpoint(object, jpf, name, paramTypes, params);
      return joinpoint.dispatch();
   }
  
   /**
    * Get a constructor Joinpoint
    *
 
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint.dispatch()

      {
         KernelConfigurator configurator = controller.getKernel().getConfigurator();
         BeanInfo beanInfo = configurator.getBeanInfo(result.getClass());
         TargettedJoinpoint joinpoint = configurator.getPropertyGetterJoinPoint(beanInfo, property);
         joinpoint.setTarget(result);
         return joinpoint.dispatch();
      }
      return result;
   }

   public void visit(MetaDataVisitor visitor)
View Full Code Here

Examples of org.jboss.portal.portlet.spi.ServerContext.dispatch()

      ServerContext reqCtx = invocation.getServerContext();
      ServletContext targetCtx = portletApplication.getContext().getServletContext();
      ServletContainer servletContainer = servletContainerFactory.getServletContainer();
      try
      {
         return (PortletInvocationResponse)reqCtx.dispatch(servletContainer, targetCtx, callback, invocation);
      }
      catch (Exception e)
      {
         if (e instanceof PortletInvokerException)
         {
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.mgmt.EventDispatcher.dispatch()

      try
      {
         InitialContext iniCtx = getInitialContext();
         EventDispatcher delegate = (EventDispatcher)
               iniCtx.lookup(EventingConstants.DISPATCHER_JNDI_NAME);
         delegate.dispatch(eventSourceURI, payload);
         Thread.sleep(3000);        
      }
      catch (Exception e)
      {        
         throw e;
View Full Code Here

Examples of org.jemmy.action.GetAction.dispatch()

            @Override
            public void run(Object... parameters) throws Exception {
                setResult(getControl().getClass().getField(name).get(getControl()));
            }
        };
        Object result = action.dispatch(env);
        if (action.getThrowable() != null) {
            throw new JemmyException("Unable to obtain property \"" + name + "\"", action.getThrowable(), this);
        }
        return result;
    }
View Full Code Here

Examples of org.jnetpcap.Pcap.dispatch()

    StringBuilder errbuf = new StringBuilder();
    Pcap pcap = Pcap.openOffline(TestUtils.L2TP, errbuf);

    assertNotNull(pcap);

    pcap.dispatch(Pcap.DISPATCH_BUFFER_FULL, JProtocol.ETHERNET_ID,
        new PcapPacketHandler<Pcap>() {
          Ip4 ip = new Ip4();

          int i = 0, j = 0;
View Full Code Here

Examples of org.mule.api.client.LocalMuleClient.dispatch()

        LocalMuleClient client = muleContext.getClient();
        MuleMessage message = new DefaultMuleMessage("test", muleContext);
        message.setOutboundProperty("foo", "fooValue");
        message.setReplyTo("jms://reply");

        client.dispatch("inbound", message);
        MuleMessage result = client.request("jms://reply", 10000);

        assertNotNull(result);
        assertEquals("test bar", result.getPayload());
        assertEquals("fooValue", result.<Object>getInboundProperty("foo"));
View Full Code Here

Examples of org.mule.api.client.MuleClient.dispatch()

        Customer c = new Customer("Ross Mason", 1234);
        CustomerQuoteRequest request = new CustomerQuoteRequest(c, 100000, 48);

        for (int i = 0; i < getNumberOfRequests(); i++)
        {
            client.dispatch("CustomerRequests", request, null);
        }
       
        MuleMessage result;
        for (int i = 0; i < getNumberOfRequests(); i++)
        {
View Full Code Here

Examples of org.mule.extras.client.MuleClient.dispatch()

        MuleClient client = new MuleClient();
        boolean[] received = new boolean[messageCount];

        for (int i = 0; i < messageCount; i++)
        {
            client.dispatch("vm://smtpinbound", "Message : " + i + ";email.jpg;test.doc", null);
            received[i] = false;
        }

        // wait for max 5s for 1 email to arrive
        assertTrue(servers.waitForIncomingEmail(5000, messageCount));
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.