Examples of bind()


Examples of org.apache.wicket.ResourceReference.bind()

        String name = specs.length == 1 ? specs[0].getFile() : unversionedPath;

        final ResourceReference ref = newResourceReference(getScope(specs), name, getLocale(specs),
            getStyle(specs), getCacheDuration(specs, versioned), specs, _preProcessor);
        refs.add(ref);
        ref.bind(application);
        application.mount(newStrategy(path, ref, merge));

        if (_mountRedirect && versioned) {
          application.mount(newRedirectStrategy(unversionedPath, path));
        }
View Full Code Here

Examples of org.apache.wicket.Session.bind()

  @Test
  public void sessionBinding()
  {
    Session session = tester.getSession();
    assertTrue(session.isTemporary());
    session.bind();
    assertFalse(session.isTemporary());
  }

  private void setTextFieldAndAssertSubmit(boolean expected)
  {
View Full Code Here

Examples of org.apache.wicket.session.ISessionStore.bind()

    if (store.lookup(request) == null)
    {
      // explicitly create a session
      id = store.getSessionId(request, true);
      // bind it
      store.bind(request, this);

      if (temporarySessionAttributes != null)
      {
        for (Map.Entry<String, Serializable> entry : temporarySessionAttributes.entrySet())
        {
View Full Code Here

Examples of org.apache.xbean.naming.context.WritableContext.bind()

    public void testBindUnbind() throws Exception {
        System.setProperty("java.naming.factory.initial", "org.apache.xbean.naming.global.GlobalContextManager");
        WritableContext globalContext = new WritableContext("");
        GlobalContextManager.setGlobalContext(globalContext);
        DeepBindableContext context = new DeepBindableContext("openejb", false, true, false, false);
        globalContext.bind("openejb", context);

        Context contextWrapper = context.newContextWrapper();
        testBindUnbind(context, contextWrapper, "openejb/foo/bar", "");
        testBindUnbind(context, contextWrapper, "java:openejb/foo/bar", "java:");
View Full Code Here

Examples of org.ardverk.dht.DHT.bind()

      for (int i = 0; i < count; i++) {
        int prt = port+i;
       
        DHT dht = factory.newDHT(prt);
       
        dht.bind(new DatagramTransport(
            new BencodeMessageCodec(), prt));
        dhts.add(dht);
      }
      success = true;
    } finally {
View Full Code Here

Examples of org.atmosphere.gwt.client.extra.WindowSocket.bind()

            @Override
            public void onMessage(String message) {
                Info.display("Received through window socket", message);
            }
        });
        socket.bind("wsock");
       
        RootPanel.get("buttons").add(button);
        RootPanel.get("buttons").add(post);
        RootPanel.get("buttons").add(pollButton);
        RootPanel.get("buttons").add(wnd);
View Full Code Here

Examples of org.cafesip.jiplet.naming.EnvEntryMetaData.bind()

            jndi_name = vdh.getEnvJndiName(jndi_name);
        }

        EnvEntryMetaData meta = new EnvEntryMetaData(jndi_name, env
                .getEnvEntryValue(), env.getEnvEntryValue());
        meta.bind(sub);
    }

    private void initJipletCriteria() throws Exception
    {
        Iterator iter = config.getJipletMapping().iterator();
View Full Code Here

Examples of org.candlepin.resource.ConsumerResource.bind()

            ConsumerResource cr = new ConsumerResource(cc, null,
                null, sa, null, null, null, i18n, null, null, null, null, null,
                null, null, null, null, null, e, null, null, null, null,
                new CandlepinCommonTestConfig(), null, null, null, consumerBindUtil);
            cr.bind("fakeConsumer", null, prodIds, null, null, null, false, null, null);
        }
        catch (Throwable t) {
            fail("Runtime exception should be caught in ConsumerResource.bind");
        }
    }
View Full Code Here

Examples of org.crsh.shell.impl.remoting.RemoteServer.bind()

      }

      //
      if (interactive) {
        RemoteServer server = new RemoteServer(0);
        int port = server.bind();
        log.log(Level.INFO, "Callback server set on port " + port);
        sb.append(port);
        String options = sb.toString();
        Integer pid = pids.get(0);
        final VirtualMachine vm = VirtualMachine.attach("" + pid);
View Full Code Here

Examples of org.datanucleus.query.expression.ClassExpression.bind()

                        }
                    }
                }

                ClassExpression clsExpr = (ClassExpression)frm.getQueryExpression(true);
                clsExpr.bind(symtbl);
                fromExprs[i++] = clsExpr;
            }

            org.datanucleus.query.expression.Expression filterExpr = null;
            if (filter != null)
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.