Examples of create()


Examples of com.google.wave.api.impl.GsonFactory.create()

    GsonFactory factoryForV2 = new GsonFactory();
    ElementGsonAdaptorV2 elementGsonAdaptorV2 = new ElementGsonAdaptorV2();
    factoryForV2.registerTypeAdapter(Element.class, elementGsonAdaptorV2);
    factoryForV2.registerTypeAdapter(Attachment.class, elementGsonAdaptorV2);
    gsons.put(ProtocolVersion.V2, factoryForV2.create());

    return new RobotSerializer(gsons, ProtocolVersion.DEFAULT);
  }

  @Override

Examples of com.google.web.bindery.requestfactory.shared.RequestContext.create()

    });
  }

  public void testMultipleEdits() {
    RequestContext c1 = req.simpleFooRequest();
    SimpleFooProxy proxy = c1.create(SimpleFooProxy.class);
    // Re-editing is idempotent
    assertSame(proxy, c1.edit(c1.edit(proxy)));

    // Should not allow "crossing the steams"
    RequestContext c2 = req.simpleFooRequest();

Examples of com.google.web.bindery.requestfactory.shared.SimpleBarRequest.create()

  }

  public void testFetchDeletedEntity() {
    delayTestFinish(TEST_DELAY);
    SimpleBarRequest context = req.simpleBarRequest();
    SimpleBarProxy willDelete = context.create(SimpleBarProxy.class);
    context.persistAndReturnSelf().using(willDelete).fire(new Receiver<SimpleBarProxy>() {
      @Override
      public void onSuccess(SimpleBarProxy response) {
        final EntityProxyId<SimpleBarProxy> id = response.stableId();

Examples of com.google.web.bindery.requestfactory.shared.SimpleFooRequest.create()

   * Test that we can commit child objects.
   */
  public void testCascadingCommit() {
    delayTestFinish(DELAY_TEST_FINISH);
    SimpleFooRequest context = req.simpleFooRequest();
    final SimpleFooProxy foo = context.create(SimpleFooProxy.class);
    final SimpleBarProxy bar0 = context.create(SimpleBarProxy.class);
    final SimpleBarProxy bar1 = context.create(SimpleBarProxy.class);
    final SimpleBarProxy bar2 = context.create(SimpleBarProxy.class);
    final SimpleBarProxy bar3 = context.create(SimpleBarProxy.class);
    final SimpleBarProxy bar4 = context.create(SimpleBarProxy.class);

Examples of com.google.web.bindery.requestfactory.shared.SimpleValueContext.create()

  }

  public void testValueMethodInvocation() {
    delayTestFinish(DELAY_TEST_FINISH);
    SimpleValueContext ctx = req.simpleValueContext();
    SimpleValueProxy p = ctx.create(SimpleValueProxy.class);
    p.setString("Hello World!");
    ctx.getString().using(p).fire(new Receiver<String>() {
      @Override
      public void onSuccess(String response) {
        assertEquals("Hello World!", response);

Examples of com.googlecode.gwtrpccommlayer.client.GwtRpcService.create()

        server.setHandler(handler);
        server.start();

        GwtRpcService service = injector.getInstance(GwtRpcService.class);
        //Create our proxy-based service using GwtRpcService
        TestService testService = service.create(new URL("http://localhost:" + PORT), TestService.class);

        //Run Synchronous Tests
        testService.easy();
        try { testService.multipleArgs(null, null); Assert.fail(); } catch(Exception e) { }
        String test = "test";

Examples of com.guokr.simbase.store.Recommendation.create()

            target.addListener(rec);
        }

        if (source.type().equals("dense")) {
            for (int srcVecId : source.ids()) {
                rec.create(srcVecId);
                float[] vector = source.get(srcVecId);
                target.rescore(source.key(), srcVecId, vector, rec);
            }
        } else {
            for (int srcVecId : source.ids()) {

Examples of com.hp.hpl.jena.iri.IRI.create()

           
        // Level of checking?
        if ( baseIRI != null )
        {
            IRI base = iriFactory.create(baseIRI);
            iri = base.create(iriStr);
        }
        else
            iri = iriFactory.create(iriStr);

        if ( ! iri.isAbsolute() )

Examples of com.hp.hpl.jena.iri.IRIFactory.create()

        IRIFactory factory = IRIFactory.iriImplementation();
        while (true) {
            String s = in.readLine().trim();
            if (s.equals("quit"))
                return;
            IRIImpl iri = (IRIImpl) factory.create(s);
            show(iri);

            if (last != null) {
                IRI r = last.create(iri);
                System.out.println("Resolved: " + r.toString());

Examples of com.hp.hpl.jena.sdb.store.SQLBridgeFactory.create()

            SqlNode sqlNode = opSQL.getSqlNode() ;
           
            SQLBridgeFactory f = request.getStore().getSQLBridgeFactory() ;
           
            SQLBridge bridge = f.create(request, sqlNode, projectVars) ;
            bridge.build();
            sqlNode = bridge.getSqlNode() ;
           
            opSQL.setBridge(bridge) ;
            opSQL.resetSqlNode(sqlNode) ;
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.