Examples of load()


Examples of org.vosao.entity.BaseEntity.load()

    try {
      getDaoStat().incGetCalls();
      Map<Key, Entity> loaded = getSystemService().getDatastore().get(keys);
      for (Key key : loaded.keySet()) {
        BaseEntity model = (BaseEntity)clazz.newInstance();
        model.load(loaded.get(key));
        result.put(model.getId(), model);
      }
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.w3c.util.ObservableProperties.load()

  ObservableProperties p = (ObservableProperties) propspace.get(id);
  if ( p == null ) {
      p = new ObservableProperties(globprops);
      propspace.put(id, p);
  }
  p.load(in);
  return p;
    }

    /**
     * Load in the default properties for the given space.
View Full Code Here

Examples of org.wikier.trioo.jtrioo.ResourceManager.load()

  private static final PrintStream out = System.out;
 
  private Demo() {
    ResourceManager rm = ResourceManagerFactory.getResourceManager();
   
    rm.load("http://www.wikier.org/foaf.rdf");
   
    out.println("sergio:");
    out.println("------");
    Person sergio = (Person)rm.find(Person.class, "http://www.wikier.org/foaf#wikier");
    out.println(sergio);
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.impl.BPELImpl.load()

    protected static SVGImpl generateSVGImpl(java.io.InputStream is) throws java.io.IOException {
      byte[] b=new byte[is.available()];
      is.read(b);
   
      BPELInterface bpel = new BPELImpl();
        OMElement bpelStr = bpel.load(new String(b));
       
        bpel.processBpelString(bpelStr);

        LayoutManager layoutManager = BPEL2SVGFactory.getInstance().getLayoutManager();
        layoutManager.setVerticalLayout(true);
View Full Code Here

Examples of org.xbean.server.spring.loader.SpringLoader.load()

            List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor);
            SpringLoader springLoader = new SpringLoader();
            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(getRootPath()));
            springLoader.setXmlPreprocessors(xmlPreprocessors);
            ServiceName configurationName = springLoader.load("xbean");
            kernel.startService(configurationName);
            services = kernel.getServices(EndpointSpec.class);
            if (services == null || services.size() == 0) {
                throw new DeploymentException("no endpoints specified");
            }
View Full Code Here

Examples of org.xmlvm.proc.lib.LibraryLoader.load()

      { // If any green list exists, force inclusion of its contents
        for (String className : classes)
        {
          if (!resources.containsKey(className))
          {
            XmlvmResource resource= libraryLoader.load(className);
            if (resource != null)
            {
              resources.put(resource.getFullName(), resource);
            }
          }
View Full Code Here

Examples of org.xtreemfs.babudb.replication.service.clients.MasterClient.load()

        MasterClient master = slaveView.getSynchronizationPartner(until);
       
        // make the request and get the result synchronously
        Logging.logMessage(Logging.LEVEL_INFO, stage, "Loading DB since %s from %s.",
                actual.toString(), master.getDefaultServerAddress().toString());
        ClientResponseFuture<DBFileMetaDataSet, DBFileMetaDatas> rp = master.load(actual);
        DBFileMetaDataSet result = null;
        try {
            result = rp.get()
        } catch (ErrorCodeException e) {
            // connection is lost
View Full Code Here

Examples of org.yaml.snakeyaml.Yaml.load()

  public ApiServer() {
    super();
    try {
      InputStream i = new FileInputStream(new File("../config.yaml"));
      Yaml yaml = new Yaml();
      Map config = (Map)yaml.load(i);
      System.out.println(config);
    } catch (java.io.FileNotFoundException e) {
    }
  }
View Full Code Here

Examples of org.zkoss.xel.util.TaglibMapper.load()

  Map imports, Collection funcs, Locator loc) {
    TaglibMapper mapper = null;
    if (taglibs != null && !taglibs.isEmpty()) {
      mapper = new TaglibMapper();
      for (Iterator it = taglibs.iterator(); it.hasNext();)
        mapper.load((Taglib)it.next(), loc);
    }

    if (imports != null && !imports.isEmpty()) {
      if (mapper == null)
        mapper = new TaglibMapper();
View Full Code Here

Examples of pdp.scrabble.game.Letter.load()

    Iterator<Element> Eletters = element.getChildren().iterator();

    while (Eletters.hasNext()) {
      Element Eletter = Eletters.next();
      Letter letter = Factory.FACTORY.createLetter(' ', 0, 0);
      letter.load(Eletter);
      lettres.add(letter);
    }
  }

  @Override
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.