Examples of bind()


Examples of org.qi4j.runtime.model.Binder.bind()

                        fieldModel.bind( resolution.forField( fieldModel.field() ) );
                        return false;
                    } else if( visited instanceof Binder )
                    {
                        Binder constructorsModel = (Binder) visited;
                        constructorsModel.bind( resolution );

                        return false;
                    }
                    return true;
                }
View Full Code Here

Examples of org.quartz.impl.SchedulerRepository.bind()

        jobStore.initialize(cch, qs.getSchedulerSignaler());
        StdScheduler scheduler = new StdScheduler(qs, schedCtxt);
        jrsf.initialize(scheduler, schedCtxt);
        SchedulerRepository schedRep = SchedulerRepository.getInstance();
        qs.addNoGCObject(schedRep);
        schedRep.bind(scheduler);
        return scheduler;
    }

    public void registerSynchronizer(final Synchronizer synch) throws ContextException {
        try {
View Full Code Here

Examples of org.simpleframework.xml.convert.Registry.bind()

      Strategy strategy = new RegistryStrategy(registry);
      RegistryMatcher matcher = new RegistryMatcher(); //TODO need to be removed in the later versions
      Serializer serializer = new Persister(strategy, matcher);

      matcher.bind(Long.class, LongTransform.class);
      registry.bind(Date.class, DateConverter.class);
      registry.bind(User.class, new UserConverter(usersDao, usersMap));
     
      List<Configuration> list = readList(serializer, f, "configs.xml", "configs", Configuration.class, true);
      for (Configuration c : list) {
        if (c.getConf_key() == null || c.getDeleted()) {
View Full Code Here

Examples of org.simpleframework.xml.transform.RegistryMatcher.bind()

      Registry registry = new Registry();
      Strategy strategy = new RegistryStrategy(registry);
      RegistryMatcher matcher = new RegistryMatcher(); //TODO need to be removed in the later versions
      Serializer serializer = new Persister(strategy, matcher);

      matcher.bind(Long.class, LongTransform.class);
      registry.bind(Date.class, DateConverter.class);
      registry.bind(User.class, new UserConverter(usersDao, usersMap));
     
      List<Configuration> list = readList(serializer, f, "configs.xml", "configs", Configuration.class, true);
      for (Configuration c : list) {
View Full Code Here

Examples of org.skife.jdbi.v2.PreparedBatchPart.bind()

                PreparedBatchPart part = batch.add();
                for (int column = 0; column < tableMetadata.getColumns().size(); column++) {
                    ColumnMetadata columnMetadata = tableMetadata.getColumns().get(column);
                    switch (columnMetadata.getType()) {
                        case BOOLEAN:
                            part.bind(column, cursor.getBoolean(column));
                            break;
                        case LONG:
                            part.bind(column, cursor.getLong(column));
                            break;
                        case DOUBLE:
View Full Code Here

Examples of org.skife.jdbi.v2.tweak.RewrittenStatement.bind()

                throw new UnableToCreateStatementException(e);
            }

            try {
                for (PreparedBatchPart part : parts) {
                    rewritten.bind(part.getParameters(), stmt);
                    stmt.addBatch();
                }
            }
            catch (SQLException e) {
                throw new UnableToExecuteStatementException("Exception while binding parameters", e);
View Full Code Here

Examples of org.sodbeans.phonemic.daemon.PhonemicDaemon.bind()

        // The local server couldn't be reached--try spawning one.
        PhonemicDaemon daemon;
        try {
            daemon = TextToSpeechFactory.newPhonemicDaemon(speech);
            daemon.bind();
            daemon.start();
           
            // Attempt to connect.
            tts = TextToSpeechFactory.getPhonemicClient("localhost");
            instance = tts;
View Full Code Here

Examples of org.spout.api.input.InputManager.bind()

      case CLIENT:

        final Client client = (Client) getEngine();
        //Setup client input
        final InputManager input = client.getInputManager();
        input.bind(new Binding("quickbar_left", Mouse.SCROLL_UP));
        input.bind(new Binding("quickbar_right", Mouse.SCROLL_DOWN));
        for (int i = 1; i < 10; i++) {
          input.bind(new Binding("quickbar_" + i, Keyboard.valueOf("KEY_" + i)));
        }
View Full Code Here

Examples of org.springframework.boot.bind.RelaxedDataBinder.bind()

  private final ServerProperties properties = new ServerProperties();

  @Test
  public void testAddressBinding() throws Exception {
    RelaxedDataBinder binder = new RelaxedDataBinder(this.properties, "server");
    binder.bind(new MutablePropertyValues(Collections.singletonMap("server.address",
        "127.0.0.1")));
    assertFalse(binder.getBindingResult().hasErrors());
    assertEquals(InetAddress.getByName("127.0.0.1"), this.properties.getAddress());
  }
View Full Code Here

Examples of org.springframework.ldap.core.LdapTemplate.bind()

            String filter = (String) body.get(FILTER);
            exchange.getIn().setBody(ldapTemplate.search(dn, filter, endpoint.getScope(), mapper));
            break;
        case BIND:
            Attributes attributes = (Attributes) body.get(ATTRIBUTES);
            ldapTemplate.bind(dn, null, attributes);
            break;
        case UNBIND:
            ldapTemplate.unbind(dn);
            break;
        default:
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.