Examples of bindTo()


Examples of com.caucho.jaxb.skeleton.ClassSkeleton.bindTo()

      doc = (Document) xmlNode;

    Node child = doc.createElement("root");

    try {
      xmlNode.appendChild(skeleton.bindTo(this, child, jaxbObject, null, null));
    }
    catch (IOException e) {
      throw new JAXBException(e);
    }
  }
View Full Code Here

Examples of com.caucho.jaxb.skeleton.ClassSkeleton.bindTo()

    if (skeleton == null)
      throw new MarshalException(L.l("Unable to update {0}: its type unknown to this JAXBContext", jaxbObject));

    try {
      return skeleton.bindTo(this, xmlNode, jaxbObject, null, null);
    }
    catch (IOException e) {
      throw new JAXBException(e);
    }
  }
View Full Code Here

Examples of com.caucho.resin.HttpEmbed.bindTo()

      _resin.start();
      _server = _resin.getServer();
     
      if (_httpPort >= 0) {
        HttpEmbed httpEmbed = new HttpEmbed(_httpPort);
        httpEmbed.bindTo(_server);
      }
     
      HostConfig hostConfig = new HostConfig();
      _server.addHost(hostConfig);
      _host = _server.getHost("", 0);
View Full Code Here

Examples of com.drakulo.games.ais.ui.component.Bindable.bindTo()

  public void add(UIComponent component) {
    components.add(component);
    if (component instanceof Bindable) {
      Bindable b = (Bindable) component;
      if (getRootPane().getChildIndex(b.getBindable()) == -1) {
        b.bindTo(getRootPane());
      }
    }
  }
 
  public void add(Widget w){
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

  }

  public static Object perform_withArguments_(Object receiver,
      Symbol selector, Object[] arguments) throws Throwable {
    MethodHandle handle = getHandle(receiver, selector);
    return handle.bindTo(receiver).invokeWithArguments(arguments);
  }

  public static Object perform(Object receiver, String selector)
      throws Throwable {
    MethodHandle handle = getHandle(receiver, selector);
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

            if (optimize && !function.isDeterministic()) {
                return new FunctionCall(node.getName(), node.getWindow().orNull(), node.isDistinct(), toExpressions(argumentValues));
            }
            MethodHandle handle = function.getScalarFunction();
            if (handle.type().parameterCount() > 0 && handle.type().parameterType(0) == Session.class) {
                handle = handle.bindTo(session);
            }
            try {
                return handle.invokeWithArguments(argumentValues);
            }
            catch (Throwable throwable) {
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

            if (optimize && !function.isDeterministic()) {
                return new FunctionCall(node.getName(), node.getWindow().orNull(), node.isDistinct(), toExpressions(argumentValues));
            }
            MethodHandle handle = function.getScalarFunction();
            if (handle.type().parameterCount() > 0 && handle.type().parameterType(0) == Session.class) {
                handle = handle.bindTo(session);
            }
            try {
                return handle.invokeWithArguments(argumentValues);
            }
            catch (Throwable throwable) {
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

            handle = lookup.findStatic(InvokeDynamicSupport.class, "setVariableFallback", methodType(IRubyObject.class, VariableSite.class, IRubyObject.class, IRubyObject.class));
        } else {
            throw new RuntimeException("invalid variable access type");
        }
       
        handle = handle.bindTo(site);
        site.setTarget(handle);
       
        return site;
    }
   
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

        // prepare fallback
        MethodHandle fallback = null;
        if (site.chainCount() > RubyInstanceConfig.MAX_POLY_COUNT) {
            if (RubyInstanceConfig.LOG_INDY_BINDINGS) LOG.info(site.name + "\tqet on type " + self.getMetaClass().id + " failed (polymorphic)" + extractSourceInfo(site));
            fallback = findStatic(InvokeDynamicSupport.class, "getVariableFail", methodType(IRubyObject.class, VariableSite.class, IRubyObject.class));
            fallback = fallback.bindTo(site);
            site.setTarget(fallback);
            return (IRubyObject)fallback.invokeWithArguments(self);
        } else {
            if (RubyInstanceConfig.LOG_INDY_BINDINGS) LOG.info(site.name + "\tget on type " + self.getMetaClass().id + " added to PIC" + extractSourceInfo(site));
            fallback = site.getTarget();
View Full Code Here

Examples of java.lang.invoke.MethodHandle.bindTo()

        // prepare fallback
        MethodHandle fallback = null;
        if (site.chainCount() > RubyInstanceConfig.MAX_POLY_COUNT) {
            if (RubyInstanceConfig.LOG_INDY_BINDINGS) LOG.info(site.name + "\tset on type " + self.getMetaClass().id + " failed (polymorphic)" + extractSourceInfo(site));
            fallback = findStatic(InvokeDynamicSupport.class, "setVariableFail", methodType(IRubyObject.class, VariableSite.class, IRubyObject.class, IRubyObject.class));
            fallback = fallback.bindTo(site);
            site.setTarget(fallback);
            return (IRubyObject)fallback.invokeWithArguments(self, value);
        } else {
            if (RubyInstanceConfig.LOG_INDY_BINDINGS) LOG.info(site.name + "\tset on type " + self.getMetaClass().id + " added to PIC" + extractSourceInfo(site));
            fallback = site.getTarget();
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.