Examples of store()


Examples of org.apache.tapestry.services.ObjectPool.store()

        String pooled = "POOLED";
        ObjectPool p = new ObjectPoolImpl();

        assertNull(p.get(key));

        p.store(key, pooled);

        assertSame(pooled, p.get(key));

        assertNull(p.get(key));
    }
View Full Code Here

Examples of org.apache.tapestry.services.RequestGlobals.store()

        Response response = new ResponseImpl(hsr);
        ResourceStreamer streamer = getService(ResourceStreamer.class);
        RequestGlobals globals = getService(RequestGlobals.class);

        globals.store(request, response);

        String path = getClass().getPackage().getName().replace('.', '/') + "/" + fileName;

        Resource resource = new ClasspathResource(path);
View Full Code Here

Examples of org.apache.tapestry5.internal.services.ComponentInvocationMap.store()

        ComponentResources resources = mockComponentResources();
        ComponentInvocationMap map = new PageTesterComponentInvocationMap();
        MarkupWriter writer = new MarkupWriterImpl();
        ComponentInvocation invocation = mockComponentInvocation();

        map.store(link, invocation);

        train_toURI(link, LINK_URI);

        resources.renderInformalParameters(writer);
View Full Code Here

Examples of org.apache.tapestry5.internal.test.PageTesterComponentInvocationMap.store()

        ComponentResources resources = mockComponentResources();
        ComponentInvocationMap map = new PageTesterComponentInvocationMap();
        MarkupWriter writer = new MarkupWriterImpl();
        ComponentInvocation invocation = mockComponentInvocation();

        map.store(link, invocation);

        train_toURI(link, LINK_URI);

        resources.renderInformalParameters(writer);
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.Type.STORE()

                paramTemp[i] =
                    methodGen.addLocalVariable("function_call_tmp"+i,
                                               expType.toJCType(),
                                               null, null);
                paramTemp[i].setStart(
                        il.append(expType.STORE(paramTemp[i].getIndex())));
      }

      il.append(new NEW(cpg.addClass(_className)));
      il.append(InstructionConstants.DUP);
View Full Code Here

Examples of org.arch.config.IniProperties.store()

    String[] splits = "Xyz|as|xfas|wer".split("[,|;|\\|]");
    System.out.println(Arrays.asList(splits));
   
    IniProperties ini = new IniProperties();
    ini.setProperty("Hrlo", "sda", "safas");
    ini.store(new FileOutputStream("test.txt"));
  }

}
View Full Code Here

Examples of org.archive.wayback.util.flatfile.FlatFile.store()

  public void store(File target) throws IOException {
    FlatFile ff = new FlatFile(target.getAbsolutePath());
    Iterator<String> adapted =
      new AdaptedIterator<ResourceFileLocation,String>(iterator(),
        new ResourceFileLocationAdapter());
    ff.store(adapted);
  }

  public static ResourceFileList load(File source) throws IOException {
    ResourceFileList list = new ResourceFileList();
   
View Full Code Here

Examples of org.cipres.treebase.domain.admin.PersonHome.store()

    String email = "test@cipres.treebase.org";
    p.setEmailAddressString(email);

    PersonHome fixture = getPersonHome();
    fixture.store(p);

    // force commit immediately, important:
    setComplete();
    endTransaction();
    logger.info("person created: " + p.getLastName() + "id = " + p.getId());
View Full Code Here

Examples of org.cipres.treebase.domain.admin.UserHome.store()

    UserRole testRole = new UserRole();
    testRole.setAuthority("TEST");
    user.setRole(testRole);

    UserHome fixture = getUserHome();
    fixture.store(testRole);
    fixture.store(user);

    // force commit immeidately, important:
    setComplete();
    endTransaction();
View Full Code Here

Examples of org.directmemory.memory.OffHeapMemoryBuffer.store()

   
    long start = System.currentTimeMillis();

    byte[] payload = new byte[size];
    for (int i = 0; i < howMany; i++) {
      mem.store(payload);
    }
   
    logger.info("...done in " + (System.currentTimeMillis() - start) + " msecs.");
    logger.info("---------------------------------");
    dump(mem);
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.