Examples of loadFrom()


Examples of com.wakaleo.gameoflife.domain.GridReader.loadFrom()

                {DEAD_CELL, DEAD_CELL, LIVE_CELL, DEAD_CELL, DEAD_CELL, DEAD_CELL},
                {DEAD_CELL, DEAD_CELL, LIVE_CELL, DEAD_CELL, DEAD_CELL, DEAD_CELL},
        };

        GridReader gridReader = new GridReader();
        Cell[][] loadedCells = gridReader.loadFrom(gridContents);

        assertThat(loadedCells, is(expectedCells));
    }

    @Test
View Full Code Here

Examples of com.wakaleo.gameoflife.domain.GridReader.loadFrom()

                {DEAD_CELL, DEAD_CELL, LIVE_CELL, DEAD_CELL, DEAD_CELL, DEAD_CELL},
                {DEAD_CELL, DEAD_CELL, LIVE_CELL, DEAD_CELL, DEAD_CELL, DEAD_CELL},
        };

        GridReader gridReader = new GridReader();
        Cell[][] loadedCells = gridReader.loadFrom(gridContents);

        assertThat(loadedCells, is(expectedCells));
    }
}
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.settings.PlotSettings.loadFrom()

   * Load the settings for the manifestation from persistence.
   * @return
   */
  PlotSettings loadPlotSettingsFromPersistance() {
    PlotSettings settings = new PlotSettings();
    settings.loadFrom(plotViewManifestation);
    return settings;
  }
 
  public void persistPlotSettings(PlotSettings settings) {
    settings.persist(plotViewManifestation);
View Full Code Here

Examples of gov.nasa.arc.mct.plot.settings.PlotSettings.loadFrom()

   * Load the settings for the manifestation from persistence.
   * @return
   */
  PlotSettings loadPlotSettingsFromPersistance() {
    PlotSettings settings = new PlotSettings();
    settings.loadFrom(plotViewManifestation);
    return settings;
  }
 
  public void persistPlotSettings(PlotSettings settings) {
    settings.persist(plotViewManifestation);
View Full Code Here

Examples of org.formulacompiler.spreadsheet.SpreadsheetLoader.loadFrom()

      SpreadsheetException
  {
    for (Factory factory : FACTORIES) {
      if (factory.canHandle( _originalFileName )) {
        SpreadsheetLoader loader = factory.newInstance( this.config );
        return loader.loadFrom( _originalFileName, _stream );
      }
    }
    throw new SpreadsheetException.UnsupportedFormat( "No loader found for file " + _originalFileName );
  }
View Full Code Here

Examples of org.glassfish.jersey.client.ClientConfig.loadFrom()

                // This is commented since, jersey has major problem (since ~2.5) - it blocks the calling thread !!!
                // When this bug will be fixed we should uncomment this line in order to enable a lot of concurrent open requsets               
                //                register(singleThreadPool, RequestExecutorProvider.class).
                property(ClientProperties.ASYNC_THREADPOOL_SIZE, 20);
        if (configuration != null)
            config.loadFrom(configuration);
        if (config.getConnectorProvider() == null)
            config.connectorProvider(new JettyConnectorProvider());
        return config;
    }
View Full Code Here

Examples of org.glassfish.jersey.client.ClientConfig.loadFrom()

        };
        final ClientConfig config = new ClientConfig().
                register(singleThreadPool, RequestExecutorProvider.class).
                property(ClientProperties.ASYNC_THREADPOOL_SIZE, 20);
        if (configuration != null)
            config.loadFrom(configuration);
        if (config.getConnectorProvider() == null)
            config.connectorProvider(new JettyConnectorProvider());

        return new FiberClient(ClientBuilder.newClient(config));
    }
View Full Code Here

Examples of org.jboss.osgi.resolver.XResourceBuilder.loadFrom()

            LOGGER.tracef("Starting: %s in mode %s", controller.getName(), controller.getMode());
            LOGGER.infoRegisterModule(module);
            try {
                XResourceBuilder builder = XResourceBuilderFactory.create();
                if (metadata != null) {
                    builder.loadFrom(metadata);
                } else {
                    builder.loadFrom(module);
                }
                resource = builder.getResource();
                resource.addAttachment(Module.class, module);
View Full Code Here

Examples of org.jboss.osgi.resolver.XResourceBuilder.loadFrom()

            try {
                XResourceBuilder builder = XResourceBuilderFactory.create();
                if (metadata != null) {
                    builder.loadFrom(metadata);
                } else {
                    builder.loadFrom(module);
                }
                resource = builder.getResource();
                resource.addAttachment(Module.class, module);
                injectedEnvironment.getValue().installResources(resource);
            } catch (Throwable th) {
View Full Code Here

Examples of org.jboss.osgi.resolver.XResourceBuilder.loadFrom()

                }
                if (module != null) {
                    OSGiMetaData metadata = getModuleMetadata(module);
                    XResourceBuilder builder = XResourceBuilderFactory.create();
                    if (metadata != null) {
                        builder.loadFrom(metadata);
                    } else {
                        builder.loadFrom(module);
                    }
                    XResource res = builder.getResource();
                    res.addAttachment(Module.class, module);
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.