Examples of invoke()


Examples of cli.System.Reflection.MethodInfo.Invoke()

      Object[] arg = new Object[] { Activator.CreateInstance(utsnameType) };
      MethodInfo uname = syscallType.GetMethod("uname", new Type[] { utsnameType.MakeByRefType() });
      FieldInfo fi = utsnameType.GetField(field);
      if (uname != null && fi != null)
      {
    uname.Invoke(null, arg);
    return (String)fi.GetValue(arg[0]);
      }
  }
  return null;
    }
View Full Code Here

Examples of clojure.lang.IFn.invoke()

    public void generate(Object obj) throws Exception {
      if (this.coercions != null) {
        IFn fn;
        while ((fn = (IFn)coercions.get(this.coercionKey(obj))) != null){
          obj = fn.invoke(obj);
        }
      }

      if (obj instanceof String) {
        jg.writeString((String) obj);
View Full Code Here

Examples of clojure.lang.Var.invoke()

  @Test
  public void test_clojure_loading() throws Throwable {
    CodeLoader loader = new CodeLoader();
    Var incrementer = loader.clojure("check", "check", "incrementer");
    assertEquals(11L, incrementer.invoke(10L));
  }

  @Test
  public void test_jruby_loading() {
    CodeLoader loader = new CodeLoader();
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.browser.listener.DownloadUrlInfoSWT.invoke()

      final boolean playNow, // open player
      final boolean playPrepare, // as for open player but don't actually open it
      final boolean bringToFront) {
    if (dlInfo instanceof DownloadUrlInfoSWT) {
      DownloadUrlInfoSWT dlInfoSWT = (DownloadUrlInfoSWT) dlInfo;
      dlInfoSWT.invoke(playNow ? "play" : "download");
      return;
    }

    String url = dlInfo.getDownloadURL();
    try {
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPActionInvocation.invoke()

         
      UPnPActionInvocation inv = act.getInvocation();
       
      inv.addArgument( "NewClientID", client_id );
     
      UPnPActionArgument[]  args = inv.invoke();
           
      for (int i=0;i<args.length;i++){
       
        UPnPActionArgument  arg = args[i];
     
View Full Code Here

Examples of com.alibaba.citrus.service.pipeline.PipelineInvocationHandle.invoke()

        // pipeline reference
        pipeline = getPipelineImplFromFactory("choose-ref");
        PipelineInvocationHandle handle = pipeline.newInvocation();

        handle.setAttribute("value", 1);
        handle.invoke();
        assertLog("1-1", /* choose *///
                  /* when value==1 */"2-1", //
                  /* when value==2 *///
                  /* otherwise *///
                  "1-3");
View Full Code Here

Examples of com.alibaba.citrus.service.pipeline.Valve.invoke()

                    try {
                        if (log.isTraceEnabled()) {
                            log.trace("Entering {}: {}", descCurrentValve(), valve);
                        }

                        valve.invoke(this);
                    } catch (PipelineException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new PipelineException("Failed to invoke " + descCurrentValve() + ": " + valve, e);
                    } finally {
View Full Code Here

Examples of com.alibaba.dubbo.monitor.support.MonitorFilter.invoke()

    public void testFilter() throws Exception {
        MonitorFilter monitorFilter = new MonitorFilter();
        monitorFilter.setMonitorFactory(monitorFactory);
        Invocation invocation = new RpcInvocation("aaa", new Class<?>[0], new Object[0]);
        RpcContext.getContext().setRemoteAddress(NetUtils.getLocalHost(), 20880).setLocalAddress(NetUtils.getLocalHost(), 2345);
        monitorFilter.invoke(serviceInvoker, invocation);
        while (lastStatistics == null) {
            Thread.sleep(10);
        }
        Assert.assertEquals("abc", lastStatistics.getParameter(MonitorService.APPLICATION));
        Assert.assertEquals(MonitorService.class.getName(), lastStatistics.getParameter(MonitorService.INTERFACE));
View Full Code Here

Examples of com.alibaba.dubbo.rpc.Filter.invoke()

                    public boolean isAvailable() {
                        return invoker.isAvailable();
                    }

                    public Result invoke(Invocation invocation) throws RpcException {
                        return filter.invoke(next, invocation);
                    }

                    public void destroy() {
                        invoker.destroy();
                    }
View Full Code Here

Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.DemoService.invoke()

    Map<String, String> map = new HashMap<String, String>();
    map.put("aa", "bb");
    Set<String> set = service.keys(map);
    assertEquals(set.size(), 1);
    assertEquals(set.iterator().next(), "aa");
    service.invoke("dubbo://127.0.0.1:9010/" + DemoService.class.getName() + "", "invoke");

    service = proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName() + "?client=netty")));
    // test netty client
    StringBuffer buf = new StringBuffer();
    for(int i=0;i<1024*32+32;i++)
 
View Full Code Here
TOP
Copyright © 2015 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.