Examples of loadConfiguration()


Examples of org.sonatype.nexus.configuration.source.ApplicationConfigurationSource.loadConfiguration()

  private void doTestLogic()
      throws Exception
  {
    ApplicationConfigurationSource source = this.getConfigSource();

    Configuration config = source.loadConfiguration();

    // make sure the smtp-password is what we expect
    Assert.assertEquals("Incorrect SMTP password found in nexus.xml", "smtp-password", config
        .getSmtpConfiguration().getPassword());
View Full Code Here

Examples of org.sonatype.security.configuration.source.SecurityConfigurationSource.loadConfiguration()

    super.setUp();

    CONFIG_DIR.mkdirs();

    SecurityConfigurationSource source = this.lookup(SecurityConfigurationSource.class, "file");
    SecurityConfiguration config = source.loadConfiguration();

    config.setRealms(new ArrayList<String>(realmMap.keySet()));
    source.storeConfiguration();

    lookup(SecuritySystem.class).start();
View Full Code Here

Examples of org.wikipediacleaner.api.API.loadConfiguration()

        logged = true;
      }

      // Load configuration
      setText(GT._("Loading configuration"));
      api.loadConfiguration(wiki, username);

      // Saving settings
      Configuration configuration = Configuration.getConfiguration();
      configuration.setWikipedia(wiki);
      configuration.setLanguage(language);
View Full Code Here

Examples of uk.co.nimp.scard.GenericTerminalManager.loadConfiguration()

        }
        try {
            Class theClass = arg.getPlugInClass(className);
            GenericTerminalManager manager = (GenericTerminalManager) theClass.newInstance();
            if (null != manager) {
                manager.loadConfiguration(confFolderName, appName);
                terminalManagers.add(manager);
                loadedTerminalManagers.add(className);
            }
        } catch (Throwable ex) {
            throw new RuntimeException(ex);
View Full Code Here

Examples of uk.co.nimp.scard.MP65TerminalManager.loadConfiguration()

            @Override
            public void run() {
                {*/
                    try {
                        MP65TerminalManager manager = new MP65TerminalManager();
                        manager.loadConfiguration(Main.getDefaultConfFolder(), "MP65Test");
                       

                        List<GenericTerminal> terminals = manager.list();
                         terminals = manager.list();
                          terminals = manager.list();
View Full Code Here

Examples of uk.co.nimp.scard.NimpPcScTerminalManager.loadConfiguration()

        apdu.setResponse(responseBytes);
    }

    public static void main(String[] args) throws ScardException, IOException, CardNotPresentException, Exception {
        NimpPcScTerminalManager manager = new NimpPcScTerminalManager();
        manager.loadConfiguration(Main.getDefaultConfFolder(), "PcScTest");

        List<GenericTerminal> terminals = manager.list();
        if (0 == terminals.size()) {
            System.out.println("PcSc terminal not detected.");
            return;
View Full Code Here

Examples of uk.co.nimp.scard.PcScTerminalManager.loadConfiguration()

final static int SCARD_ATTR_DEVICE_SYSTEM_NAME  = 0x7FFF0006;
final static int SCARD_ATTR_ICC_PRESENCE  = 0x00090300;
final static int SCARD_ATTR_CHANNEL_ID = 0x00020110;
    public static void main(String[] args) throws ScardException, IOException, CardNotPresentException, Exception {
        PcScTerminalManager manager = new PcScTerminalManager();
        manager.loadConfiguration(Main.getDefaultConfFolder(), "PcScTest");

        List<GenericTerminal> terminals = manager.list();
        if (0 == terminals.size()) {
            System.out.println("PcSc terminal not detected.");
            return;
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.