Examples of merge()


Examples of org.jpublish.Template.merge()

            // get the template
            Template template = siteContext.getTemplateManager().getTemplate(page.getFullTemplateName());

            // merge the template
            template.merge(context, page, writer);
            writer.flush();
        } catch (FileNotFoundException e) {
            throw new GeneralException("File not found", e);
        } catch (Exception e) {
            throw new GeneralException("JPublish execution error", e);
View Full Code Here

Examples of org.kie.internal.weaver.KieWeaverService.merge()

            for ( ResourceTypePackage rtkKpg : newPkg.getResourceTypePackages().values() ) {
                ResourceType rt = rtkKpg.getResourceType();
                KieWeavers weavers = ServiceRegistryImpl.getInstance().get(KieWeavers.class);

                KieWeaverService weaver = weavers.getWeavers().get(rt);
                weaver.merge( this, pkg, rtkKpg );
            }
        }
    }

    public void addGlobal(String identifier, Class clazz) {
View Full Code Here

Examples of org.kiji.schema.KijiDataRequest.merge()

  @Override
  public KijiDataRequest getDataRequest() {
    KijiDataRequest dataRequest = KijiDataRequest.builder().build();
    for (KijiRowFilter filter : mFilters) {
      if (filter != null) {
        dataRequest = dataRequest.merge(filter.getDataRequest());
      }
    }
    return dataRequest;
  }
View Full Code Here

Examples of org.lilystudio.smarty4j.IParser.merge()

    cw.visitEnd();
    byte[] code = cw.toByteArray();
    try {
      IParser parser = (IParser) DynamicClassLoader.getClass(name, code)
          .newInstance();
      parser.merge(context, out);
      out.flush();
      return new String(bos.toByteArray());
    } catch (Exception e) {
      throw new RuntimeException("不能实例化Parser对象");
    }
View Full Code Here

Examples of org.lilystudio.smarty4j.Template.merge()

    Context c = new Context();
    Bean bean = new Bean();
    c.putBean(bean);
    Template template = new Template(engine, "{$number}");
    Writer writer = new StringWriter();
    template.merge(c, writer);
    Assert.assertEquals("Bean导入", writer.toString(), "10");

    context.set("bean", bean);
    Assert.assertEquals("Bean导入",
        getResult("{$bean.number}{$bean.number}{$bean.aaa}{$bean.aaa}"),
View Full Code Here

Examples of org.milyn.archive.Archive.merge()

                    List<byte[]> list = getContentListForResource(pathToBytesMap, resourcePath);
                    list.add(content);
                    pathToBytesMap.put(resourcePath, list);
                }
            }
            all.merge(jar);
        }
        return mergeResources(pathToBytesMap, all);
    }

    private Archive getOrCreateArchive(final String jarname) throws FileNotFoundException, IOException
View Full Code Here

Examples of org.modelmapper.internal.Errors.merge()

    Errors errors = new Errors();
    for (TypeMap<?, ?> typeMap : getTypeMaps()) {
      try {
        typeMap.validate();
      } catch (ValidationException e) {
        errors.merge(e.getErrorMessages());
      }
    }

    errors.throwValidationExceptionIfErrorsExist();
  }
View Full Code Here

Examples of org.moxie.Metadata.merge()

      oldMetadata = MetadataReader.readMetadata(metadataFile);
    }

    Metadata metadata = new Metadata(dependency, isSnapshotMetadata);
    if (oldMetadata != null) {
      metadata.merge(oldMetadata);
    }

    FileUtils.writeContent(metadataFile, metadata.toXML());
    metadataFile.setLastModified(metadata.lastUpdated.getTime());
   
View Full Code Here

Examples of org.neo4j.gis.spatial.pipes.GeoPipeFlow.merge()

    if (groups.size() == 0) {
      groups.add(flow);
    } else {
      GeoPipeFlow result = groups.get(0);
      result.setGeometry(result.getGeometry().union(flow.getGeometry()));
      result.merge(flow);
    }
  }

}
View Full Code Here

Examples of org.ngrinder.model.User.merge()

      if (existingFollowers != null) {
        for (User eachFollower : existingFollowers) {
          userCache.evict(eachFollower.getUserId());
        }
      }
      user = existing.merge(user);
    }
    User createdUser = userRepository.save(user);
    // Then expires new followers so that new followers info can be loaded.
    for (User eachFollower : followers) {
      userCache.evict(eachFollower.getUserId());
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.