Examples of Config


Examples of org.apache.servicemix.kernel.jaas.config.impl.Config

        // Test realm
        Object obj = ctx.getBean("realm");
        assertNotNull(obj);
        assertTrue(obj instanceof Config);
        Config cfg = (Config) obj;
        assertNotNull(cfg.getBundleContext());
        assertEquals("realm", cfg.getName());
        assertNotNull(cfg.getModules());
        assertEquals(1, cfg.getModules().length);
        assertNotNull(cfg.getModules()[0]);
        assertEquals("org.apache.servicemix.kernel.jaas.config.SimpleLoginModule", cfg.getModules()[0].getClassName());
        assertEquals("required", cfg.getModules()[0].getFlags());
        assertNotNull(cfg.getModules()[0].getOptions());
        assertEquals(1, cfg.getModules()[0].getOptions().size());
        assertEquals("value", cfg.getModules()[0].getOptions().get("key"));
        AppConfigurationEntry[] entries = cfg.getEntries();
        assertNotNull(entries);
        assertEquals(1, entries.length);
        assertNotNull(entries[0]);
        assertEquals(ProxyLoginModule.class.getName(), entries[0].getLoginModuleName());
        assertEquals(AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, entries[0].getControlFlag());
View Full Code Here

Examples of org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Config

  @Test
  public void testImportsAndBackgroundUrlsInStyleTagDefaultContainer() throws Exception {
    // TODO: IMPORTANT!  This test needs to not rely on the packaged shindig config, but rather
    //       mock the config with expected values, so that tests do not fail when people set
    //       alternative defaults.
    Config config = injector.getInstance(ContentRewriterFeature.DefaultConfig.class);
    EasyMock.replay();
    if (config.isRewriteEnabled())
      testImportsAndBackgroundUrlsInStyleTag(ORIGINAL, EXPECTED, ContainerConfig.DEFAULT_CONTAINER, config);
    else
      testImportsAndBackgroundUrlsInStyleTag(ORIGINAL, NOREWRITE, ContainerConfig.DEFAULT_CONTAINER, config);
  }
View Full Code Here

Examples of org.apache.sling.discovery.impl.Config

    }
   
    @Before
    public void setUp() throws Exception {
        servlet = new TopologyConnectorServlet();
        Config config = mock(Config.class);
        PrivateAccessor.setField(servlet, "config", config);
    }
View Full Code Here

Examples of org.apache.solr.core.Config

    log.info("Reading Solr Schema");

    try {
      // pass the config resource loader to avoid building an empty one for no reason:
      // in the current case though, the stream is valid so we wont load the resource by name
      Config schemaConf = new Config(loader, "schema", is, "/schema/");
      Document document = schemaConf.getDocument();
      final XPath xpath = schemaConf.getXPath();
      final List<SchemaAware> schemaAware = new ArrayList<SchemaAware>();
      Node nd = (Node) xpath.evaluate("/schema/@name", document, XPathConstants.NODE);
      if (nd==null) {
        log.warn("schema has no name!");
      } else {
        name = nd.getNodeValue();
        log.info("Schema name=" + name);
      }

      version = schemaConf.getFloat("/schema/@version", 1.0f);

      final IndexSchema schema = this;
      AbstractPluginLoader<FieldType> fieldLoader = new AbstractPluginLoader<FieldType>( "[schema.xml] fieldType", true, true) {

        @Override
View Full Code Here

Examples of org.apache.tuscany.das.rdb.config.Config

                configWrapper.addImpliedRelationship(pkTableName, fkTableName, columnName);
            }
        }
        // Add any tables defined in the model but not included in the ResultSet
        // to the list of propertyNames
        Config model = configWrapper.getConfig();
        if (model != null) {
            Iterator tablesFromModel = model.getTable().iterator();
            while (tablesFromModel.hasNext()) {
                TableWrapper t = new TableWrapper((Table) tablesFromModel.next());
                if (tableToPropertyMap.get(t.getTypeName()) == null) {
                    tableToPropertyMap.put(t.getTypeName(), Collections.EMPTY_LIST);
                }
View Full Code Here

Examples of org.apache.xml.xmlbeans.x2004.x02.xbean.config.ConfigDocument.Config

        _qnameMap = new LinkedHashMap();
        _extensionHolder = new ExtensionHolder();

        for (int i = 0; i < configs.length; i++)
        {
            Config config = configs[i];
            Nsconfig[] nsa = config.getNamespaceArray();
            for (int j = 0; j < nsa.length; j++)
            {
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPackage(), _packageMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPrefix(), _prefixMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getSuffix(), _suffixMap);
            }
           
            Qnameconfig[] qnc = config.getQnameArray();
            for (int j = 0; j < qnc.length; j++)
            {
                _qnameMap.put(qnc[j].getName(), qnc[j].getJavaname());
            }

            Extensionconfig[] ext = config.getExtensionArray();
            for (int j = 0; j < ext.length; j++)
            {
                recordExtensionSetting(ext[j]);
            }
        }
View Full Code Here

Examples of org.apache.xmlbeans.impl.xb.xmlconfig.ConfigDocument.Config

        _interfaceExtensions = new ArrayList();
        _prePostExtensions = new ArrayList();

        for (int i = 0; i < configs.length; i++)
        {
            Config config = configs[i];
            Nsconfig[] nsa = config.getNamespaceArray();
            for (int j = 0; j < nsa.length; j++)
            {
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPackage(), _packageMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getPrefix(), _prefixMap);
                recordNamespaceSetting(nsa[j].getUri(), nsa[j].getSuffix(), _suffixMap);
                recordNamespacePrefixSetting(nsa[j].getUriprefix(), nsa[j].getPackage(), _packageMapByUriPrefix);
                recordNamespacePrefixSetting(nsa[j].getUriprefix(), nsa[j].getPrefix(), _prefixMapByUriPrefix);
                recordNamespacePrefixSetting(nsa[j].getUriprefix(), nsa[j].getSuffix(), _suffixMapByUriPrefix);
            }

            Qnameconfig[] qnc = config.getQnameArray();
            for (int j = 0; j < qnc.length; j++)
            {
                List applyto = qnc[j].xgetTarget().xgetListValue();
                QName name = qnc[j].getName();
                String javaname = qnc[j].getJavaname();
                for (int k = 0; k < applyto.size(); k++)
                {
                    Qnametargetenum a = (Qnametargetenum) applyto.get(k);
                    switch (a.enumValue().intValue())
                    {
                    case Qnametargetenum.INT_TYPE:
                        _qnameTypeMap.put(name, javaname);
                        break;
                    case Qnametargetenum.INT_DOCUMENT_TYPE:
                        _qnameDocTypeMap.put(name, javaname);
                        break;
                    case Qnametargetenum.INT_ACCESSOR_ELEMENT:
                        _qnameElemMap.put(name, javaname);
                        break;
                    case Qnametargetenum.INT_ACCESSOR_ATTRIBUTE:
                        _qnameAttMap.put(name, javaname);
                        break;
                    }
                }
            }

            Extensionconfig[] ext = config.getExtensionArray();
            for (int j = 0; j < ext.length; j++)
            {
                recordExtensionSetting(javaFiles, classpath, ext[j]);
            }
        }
View Full Code Here

Examples of org.atmosphere.nettosphere.Config

    @Test
    public void initParamTest() throws Exception {
        final CountDownLatch l = new CountDownLatch(1);
        final AtomicBoolean b = new AtomicBoolean(false);

        Config config = new Config.Builder()
                .port(port)
                .host("127.0.0.1")
                .initParam("foo", "bar")
                .resource("/suspend", new AtmosphereHandler() {
View Full Code Here

Examples of org.bioinfo.ngs.qc.qualimap.process.EpiAnalysis.Config

    public void run()  {

        settingsDialog.setUiEnabled(false);
        settingsDialog.getLogArea().setText("");

        Config cfg = new Config();

        cfg.replicates = settingsDialog.getSampleItems();
        cfg.experimentName = settingsDialog.getExperimentName();
        cfg.pathToRegions = settingsDialog.getGeneSelectionPath();
        cfg.leftOffset = Integer.parseInt(settingsDialog.getLeftOffset());
View Full Code Here

Examples of org.chiba.xml.xforms.config.Config

                chibaBean.dispatch(trigger, EventFactory.DOM_ACTIVATE);
            }
        }

        void buildUI() throws XFormsException {
            Config cfg = Config.getInstance();
            String dataPrefix = cfg.getProperty("chiba.web.dataPrefix");
            String triggerPrefix = cfg.getProperty("chiba.web.triggerPrefix");
            String userAgent = (String) beanCtx.get("chiba.useragent");

            generator.setParameter("data-prefix", dataPrefix);
            generator.setParameter("trigger-prefix", triggerPrefix);
            generator.setParameter("user-agent", userAgent);
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.