Examples of invoke()


Examples of org.jmanage.core.services.MBeanService.invoke()

        }
       
        MBeanService mbeanService = ServiceFactory.getMBeanService();
        ServiceContext srvcContext = context.getWebContext().getServiceContext();
        OperationResultData[] operationResult =
            mbeanService.invoke(srvcContext, objectName, operation, params, signature);
        assert operationResult.length == 1;
        assert !operationResult[0].isError();
        output.append("<pre class=\"plaintext\">" + operationResult[0].getDisplayOutput() + "</pre>");
    }
}
View Full Code Here

Examples of org.jplastic.core.InstructionBuilder.invoke()

            // Take the value passed to this method and push it onto the stack.

            builder.loadArgument(0);
            builder.boxPrimitive(typeName);

            builder.invoke(FieldConduit.class, void.class, "set", InstanceContext.class, Object.class);

            builder.returnResult();

            addMethod(mn);
View Full Code Here

Examples of org.jruby.javasupport.JavaMethod.invoke()

        Object[] convertedArgs = new Object[len];
        JavaMethod method = (JavaMethod)findCallable(self, name, args, len);
        for (int i = 0; i < len; i++) {
            convertedArgs[i] = JavaUtil.convertArgumentToType(context, args[i], method.getParameterTypes()[i]);
        }
        return Java.java_to_ruby(self, method.invoke((JavaObject) self.dataGetStruct(), convertedArgs), Block.NULL_BLOCK);
    }

    public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {
        createJavaMethods(self.getRuntime());
        JavaMethod method = (JavaMethod)findCallableArityZero(self, name);
View Full Code Here

Examples of org.jtester.bytecode.reflector.MethodAccessor.invoke()

  private Object instancePara(Parse cells) throws Exception {
    if (this.parsePropertyMethodName != null) {
      String text = cells.text();
      try {
        MethodAccessor methodAccessor = new MethodAccessor<Object>(this, parsePropertyMethodName, String.class);
        return methodAccessor.invoke(this, new Object[] { text });
      } catch (NoSuchMethodRuntimeException e) {
        TypeAdapter typeAdapter = TypeAdapter.on(this, dtoClazz);
        return typeAdapter.parse(text);
      }
    }
View Full Code Here

Examples of org.jvnet.glassfish.comms.httplayers.HttpLayer.invoke()

                   
                    if (_logger.isLoggable(Level.FINEST)){
                        _logger.log(Level.FINEST,
                                "clb.proxy.before_invoking_layer", layer.getClass().getName());
                    }                   
                    status = layer.invoke(request, response);
                    if (_logger.isLoggable(Level.FINEST)){
                        _logger.log(Level.FINEST,
                                "clb.proxy.after_invoking_layer", layer.getClass().getName());
                    }
                } catch (Exception ex) {
View Full Code Here

Examples of org.kohsuke.stapler.Stapler.invoke()

            public Enumeration getInitParameterNames() {
                return new Vector().elements();
            }
        });

        stapler.invoke(req,rsp, Jenkins.getInstance(),"/accessDenied");
    }
}
View Full Code Here

Examples of org.kuali.rice.ken.api.service.SendNotificationService.invoke()

            MartinlawConstants.NotificationTemplatePlaceholders.CALENDAR_CHANNEL_NAME,
            MartinlawConstants.NotificationTemplatePlaceholders.CALENDAR_PRODUCER_NAME, message);
        // send notification
        final SendNotificationService sendNotificationService = (SendNotificationService) GlobalResourceLoader.getService(
            new QName(KenApiConstants.Namespaces.KEN_NAMESPACE_2_0, "sendNotificationService"));
        sendNotificationService.invoke(notificationXml);
      } catch (Exception e) {
        log.error("could not create or send matter event notification", e);
      }
    }
   
View Full Code Here

Examples of org.lilyproject.util.jmx.JmxLiaison.invoke()

        if (mode == Mode.EMBED) {
            mbean.waitOnReplicationPeerReady(peerId);
        } else {
            JmxLiaison jmxLiaison = new JmxLiaison();
            jmxLiaison.connect(false);
            jmxLiaison.invoke(new ObjectName("LilyHBaseProxy:name=ReplicationPeer"), "waitOnReplicationPeerReady",
                    peerId);
            jmxLiaison.disconnect();
        }
    }
View Full Code Here

Examples of org.luaj.vm2.LuaClosure.invoke()

      return;
    }
   
    Prototype prototype = LuaCache.loadPackage(packageName, system);
    LuaClosure function = new LuaClosure(prototype, globals);
    function.invoke();
   
    packageLib.loaded.set(packageName, globals);
  }

  public void call(String functionName, LuaValue[] args) {
View Full Code Here

Examples of org.luaj.vm2.LuaFunction.invoke()

    public Object eval(ScriptContext context) throws ScriptException {
          Bindings b = context.getBindings(ScriptContext.ENGINE_SCOPE);
          LuaFunction f = newFunctionInstance();
          ClientBindings cb = new ClientBindings(b);
          f.setfenv(cb.env);
      Varargs result = f.invoke(LuaValue.NONE);
      cb.copyGlobalsToBindings();
      return result;
    }
  }
 
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.