Examples of bind()


Examples of com.orientechnologies.orient.object.serialization.OObjectSerializerContext.bind()

  }

  @Test(dependsOnMethods = "testPool")
  public void testCustomTypes() {
    OObjectSerializerContext serializerContext = new OObjectSerializerContext();
    serializerContext.bind(new OObjectSerializer<CustomType, Long>() {

      @Override
      public Long serializeFieldValue(Class<?> itype, CustomType iFieldValue) {
        serialized++;
        return iFieldValue.value;
View Full Code Here

Examples of com.palantir.ptoss.cinch.core.BindableModel.bind()

                                    logger.log(level, t.toString() + ": " + fieldName, null);
                                }
                            }
                        }
                    };
                    model.bind(binding);
                    bindings.add(binding);
                } else {
                    throw new BindingException("Can only log a BindableModel.");
                }
            }
View Full Code Here

Examples of com.sencha.gxt.core.client.util.TextMetrics.bind()

   * @return the width
   */
  public final int getTextWidth() {
    String html = getInnerHTML();
    TextMetrics metrics = TextMetrics.get();
    metrics.bind(this);
    return metrics.getWidth(html);
  }

  /**
   * Returns the top Y coordinate.
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.toolbar.PagingToolBar.bind()

      protected void onAfterFirstAttach() {
        displayText.hide();
        super.onAfterFirstAttach();
      }
    };
    toolBar.bind(getLoader());

    return toolBar;
  }

  private PagingLoader<FilterPagingLoadConfig, PagingLoadResult<TableModel>> getLoader() {
View Full Code Here

Examples of com.strategicgains.restexpress.RestExpress.bind()

      .method(HttpMethod.GET);

    server.uri("/restexpress/mongodb", config.getMongodbController())
        .method(HttpMethod.GET);

    server.bind(config.getPort());
    server.awaitShutdown();
  }

  private static Configuration loadEnvironment(String[] args)
  throws FileNotFoundException,
View Full Code Here

Examples of com.sun.corba.se.spi.activation.InitialNameService.bind()

            // add root naming context to initial naming
            NamingContext rootContext = ns.initialNamingContext();
            InitialNameService ins = InitialNameServiceHelper.narrow(
                                     orb.resolve_initial_references(
                                     ORBConstants.INITIAL_NAME_SERVICE_NAME ));
            ins.bind( "NameService", rootContext, true);
            System.out.println(CorbaResourceUtil.getText("pnameserv.success"));

            // wait for invocations
            orb.run();
View Full Code Here

Examples of com.sun.faban.driver.transport.util.TimedSocket.bind()

        int timeout = params.getConnectionTimeout();
        if (timeout == 0) {
            return createSocket(host, port, localAddress, localPort);
        } else {
            TimedSocket socket = new TimedSocket();
            socket.bind(new InetSocketAddress(localAddress, localPort));
            socket.connect(new InetSocketAddress(host, port), timeout);
            return sslFactory.createSocket(socket, host, port, true);
        }
    }
View Full Code Here

Examples of com.sun.faban.driver.transport.util.TimedSocketWrapper.bind()

    public Socket createSocket(String host, int port, InetAddress localAddress,
                               int localPort) throws IOException {

        Socket socket = new TimedSocketWrapper(sslFactory.createSocket());
        InetSocketAddress endpoint = new InetSocketAddress(host, port);
        socket.bind(new InetSocketAddress(localAddress, localPort));
        socket.connect(endpoint);
        return socket;
    }

    public Socket createSocket(String host, int port, InetAddress localAddress,
View Full Code Here

Examples of com.sun.faban.harness.tools.ToolDescription.bind()

    }

    private void bindServices() {
        for (Map.Entry<String, ToolDescription> entry : toolMap.entrySet()) {
            ToolDescription toolDesc = entry.getValue();
            if (!toolDesc.bind(serviceMap))
                logger.warning("Tool " + toolDesc.getId() + " at " +
                        toolDesc.getLocationType() + File.separator +
                        toolDesc.getLocation() +
                        " references non-existent service " +
                        toolDesc.getServiceName());
View Full Code Here

Examples of com.sun.jndi.toolkit.dir.HierMemDirCtx.bind()

            for (Enumeration objectClasses = objectClassAttr.getAll();
                objectClasses.hasMoreElements(); ) {
                objectClassName = (String)objectClasses.nextElement();
                // %%% Should we fail if not found, or just continue?
                objectClassDef = (DirContext)ocSchema.lookup(objectClassName);
                objectClassCtx.bind(objectClassName, objectClassDef);
            }

            // Make context read-only
            objectClassCtx.setReadOnly(
                new SchemaViolationException("Cannot update schema object"));
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.