Examples of load()


Examples of org.apache.uima.util.impl.Settings_impl.load()

      in = new XMLInputSource(JUnitExtension.getFile("TextAnalysisEngineImplTest/AggregateWithExternalOverrides.xml"));
      desc = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(in);
      Map<String,Object> additionalParams = new HashMap<String,Object>();
      Settings extSettings = new Settings_impl();
      FileInputStream fis = new FileInputStream(new File(resDir,"testExternalOverride2.settings"));
      extSettings.load(fis);
      fis.close();
      additionalParams.put(Resource.PARAM_EXTERNAL_OVERRIDE_SETTINGS, extSettings);
      UIMAFramework.produceAnalysisEngine(desc, additionalParams);
      System.clearProperty("UimaExternalOverrides");
     
View Full Code Here

Examples of org.apache.velocity.tools.view.XMLToolboxManager.load()

    private static Map toolbox = null;

    public static @BeforeClass void initGenericToolsTests() throws Exception {
        XMLToolboxManager manager = new XMLToolboxManager();
        manager.load(TOOLBOX_PATH);
        toolbox = manager.getToolbox(null);
    }

    public @Test void testAlternatorTool() {
        AlternatorTool alternatorTool = (AlternatorTool)toolbox.get("alternator");
View Full Code Here

Examples of org.apache.whirr.service.BlobClusterStateStore.load()

      BlobClusterStateStore store = new BlobClusterStateStore(spec);
      store.save(expected);

      /* load and check the stored state */
      Cluster stored = store.load();
      Cluster.Instance first = Iterables.getFirst(stored.getInstances(), null);
      assertNotNull(first);

      assertThat(first.getId(), is("region/id1"));
      assertThat(first.getRoles().contains("role1"), is(true));
View Full Code Here

Examples of org.apache.whirr.service.ClusterStateStore.load()

    ComputeService computeService = getCompute().apply(clusterSpec).getComputeService();
    computeService.destroyNode(instanceId);

    /* .. and update the cluster state storage */
    ClusterStateStore store = stateStoreFactory.create(clusterSpec);
    Cluster cluster = store.load();
    cluster.removeInstancesMatching(withIds(instanceId));
    store.save(cluster);

    LOG.info("Instance {} destroyed", instanceId);
  }
View Full Code Here

Examples of org.apache.whirr.state.BlobClusterStateStore.load()

      BlobClusterStateStore store = new BlobClusterStateStore(spec);
      store.save(expected);

      /* load and check the stored state */
      Cluster stored = store.load();
      Cluster.Instance first = Iterables.getFirst(stored.getInstances(), null);
      assertNotNull(first);

      assertThat(first.getId(), is("region/id1"));
      assertThat(first.getRoles().contains("role1"), is(true));
View Full Code Here

Examples of org.apache.whirr.state.ClusterStateStore.load()

    ComputeService computeService = getCompute().apply(clusterSpec).getComputeService();
    computeService.destroyNode(instanceId);

    /* .. and update the cluster state storage */
    ClusterStateStore store = getClusterStateStore(clusterSpec);
    Cluster cluster = store.load();
    cluster.removeInstancesMatching(withIds(instanceId));
    store.save(cluster);

    LOG.info("Instance {} destroyed", instanceId);
  }
View Full Code Here

Examples of org.apache.wicket.authentication.IAuthenticationStrategy.load()

    if (isSignedIn() == false)
    {
      IAuthenticationStrategy authenticationStrategy = getApplication().getSecuritySettings()
        .getAuthenticationStrategy();
      // get username and password from persistence store
      String[] data = authenticationStrategy.load();

      if ((data != null) && (data.length > 1))
      {
        // try to sign in the user
        if (signIn(data[0], data[1]))
View Full Code Here

Examples of org.apache.wicket.markup.html.form.persistence.IValuePersister.load()

        {
          // The persister
          final IValuePersister persister = getValuePersister();

          // Retrieve persisted value
          persister.load(formComponent);
        }
      }
    });
  }
View Full Code Here

Examples of org.apache.wicket.resource.IPropertiesFactory.load()

        ResourceNameIterator iter = newResourceNameIterator(path, locale, style, variation);
        while (iter.hasNext())
        {
          String newPath = iter.next();

          Properties props = propertiesFactory.load(clazz, newPath);
          if (props != null)
          {
            // Lookup the value
            String value = props.getString(key);
            if (value != null)
View Full Code Here

Examples of org.apache.wicket.util.cookies.CookieUtils.load()

        cookieUtils.save(ISIS_THEME_COOKIE_NAME, themeName);
    }

    private void initializeActiveThemeFromCookie() {
        CookieUtils cookieUtils = new CookieUtils();
        String activeTheme = cookieUtils.load(ISIS_THEME_COOKIE_NAME);
        if (!Strings.isEmpty(activeTheme)) {
            setActiveTheme(activeTheme);
        }
    }
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.