Examples of load()


Examples of org.dozer.loader.CustomMappingsLoader.load()

    return processor;
  }

  void loadCustomMappings() {
    CustomMappingsLoader customMappingsLoader = new CustomMappingsLoader();
    LoadMappingsResult loadMappingsResult = customMappingsLoader.load(mappingFiles, builderMappings);
    this.customMappings = loadMappingsResult.getCustomMappings();
    this.globalConfiguration = loadMappingsResult.getGlobalConfiguration();
  }

  public void setMappings(List<? extends BeanMappingBuilder> mappingBuilder) {
View Full Code Here

Examples of org.dozer.loader.MappingsSource.load()

    try {
      stream = url.openStream();
      Document document = documentBuilder.parse(stream);
     
      MappingsSource parser = new XMLParser(document);
      result = parser.load();
    } catch (Throwable e) {
      log.error("Error while loading dozer mapping file url: [" + url + "]", e);
      MappingUtils.throwMappingException(e);
    } finally {
      try {
View Full Code Here

Examples of org.dspace.app.cris.network.DepartmentNetworkPlugin.load()

        {
     
                log.info("Work on department");
                DepartmentNetworkPlugin deptPlugin = (DepartmentNetworkPlugin) PluginManager
                        .getSinglePlugin(NetworkPlugin.CFG_MODULE, NetworkPlugin.class);
                deptPlugin.load(discardedNode, importedNodes, otherError,
                        connections);
           
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.dspace.app.cris.network.NetworkPlugin.load()

                        "type:\"" + connection + "\"");

                NetworkPlugin plugin = (NetworkPlugin) PluginManager
                        .getNamedPlugin(NetworkPlugin.CFG_MODULE, NetworkPlugin.class, connection);
                // load data from connection
                plugin.load(discardedNode, importedNodes, otherError); // load
                                                                       // all
                                                                       // node

            }
            catch (Exception e)
View Full Code Here

Examples of org.dynmap.ConfigurationNode.load()

    public static FilePermissions create() {
        File f = new File("dynmap/permissions.yml");
        if(!f.exists())
            return null;
        ConfigurationNode cfg = new ConfigurationNode(f);
        cfg.load();
       
        Log.info("Using permissions.yml for access control");
       
        return new FilePermissions(cfg);
    }
View Full Code Here

Examples of org.eclipse.bpmn2.util.Bpmn2ResourceImpl.load()

      modelHandler = ModelHandlerLocator.createModelHandler(modelUri, bpmnResource);
      ModelHandlerLocator.put(diagramUri, modelHandler);

      try {
        if (modelFile.exists()) {
          bpmnResource.load(null);
        } else {
          doSave(null);
        }
      } catch (IOException e) {
        Status status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
View Full Code Here

Examples of org.eclipse.core.runtime.Preferences.load()

      File prefFile = projectMetaLocation.append(PREF_FILENAME).toFile();
      if (prefFile.exists()) { // load preferences from file
        InputStream in = null;
        try {
          in = new BufferedInputStream(new FileInputStream(prefFile));
          preferences.load(in);
        } catch (IOException e) { // problems loading preference store - quietly ignore
        } finally {
          if (in != null) {
            try {
              in.close();
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.ElementManager.load()

    Control control = null;
    ElementManager manager = new ElementManager();
    if (input != null) {
      Element element = null;
      if (stream == null) {
        element = manager.load(input, (IBeforeParsingCallback) options.get(IXWTLoader.BEFORE_PARSING_CALLBACK));
      }
      else {
        IBeforeParsingCallback callback = (IBeforeParsingCallback) options.get(IXWTLoader.BEFORE_PARSING_CALLBACK);
        InputStream inputStream = stream;
        if (callback != null) {
View Full Code Here

Examples of org.eclipse.ecf.server.generic.app.ServerConfigParser.load()

    }
  }

  protected synchronized void createServers(InputStream ins) throws Exception {
    final ServerConfigParser scp = new ServerConfigParser();
    final List connectors = scp.load(ins);
    if (connectors != null) {
      serverGroups = new TCPServerSOContainerGroup[connectors.size()];
      int j = 0;
      for (final Iterator i = connectors.iterator(); i.hasNext();) {
        final Connector connect = (Connector) i.next();
View Full Code Here

Examples of org.eclipse.emf.ecore.resource.Resource.load()

          try {
            Map options = new HashMap(GMFResourceFactory
                .getDefaultLoadOptions());
            // @see 171060
            // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
            resource.load(options);
          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
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.