Examples of DefaultConfiguration


Examples of org.drools.smf.DefaultConfiguration

    protected void startConfiguration(String name,
                                      Attributes attrs)
    {
        this.characters = new StringBuffer( );

        DefaultConfiguration config = new DefaultConfiguration( name );

        int numAttrs = attrs.getLength( );

        for ( int i = 0; i < numAttrs; ++i )
        {
            config.setAttribute( attrs.getLocalName( i ),
                                 attrs.getValue( i ) );
        }

        // lets add the namespaces as attributes
        for (Iterator iter = namespaces.entrySet().iterator(); iter.hasNext(); )
        {
            Map.Entry entry = (Map.Entry) iter.next();
            String ns = (String) entry.getKey();
            String value = (String) entry.getValue();
            if (ns == null || ns.length() == 0) {
                ns = "xmlns";
            }
            else
            {
                ns = "xmlns:" + ns;
            }
            config.setAttribute(ns, value);
        }
           
       
        if ( this.configurationStack.isEmpty( ) )
        {
View Full Code Here

Examples of org.jboss.mcann.repository.DefaultConfiguration

      try
      {
         URL[] urls = ClasspathUtils.getUrls(unit);
         DefaultAnnotationScanner scanner = new ModuleAnnotationScanner(module);

         AbstractConfiguration config = new DefaultConfiguration();
         configureScanner(unit, scanner, config);
         if (configuration != null)
            config.merge(configuration); // override with custom config
         scanner.setConfiguration(config);

         AnnotationRepository repository = scanner.scan(unit.getClassLoader(), urls);
         unit.addAttachment(AnnotationRepository.class, repository);
      }
View Full Code Here

Examples of org.jconfig.DefaultConfiguration

    public Configuration load(String configurationName) throws ConfigurationManagerException {   
        InitialDirContext ctx = getContext();
        if ( ctx == null ) {
            throw new ConfigurationManagerException("There is no connection to the LDAP server");
        }
        Configuration config = new DefaultConfiguration(null);
        getCategories(ctx,config);
        getAllProperties(ctx,config);
        return config;
    }
View Full Code Here

Examples of org.jfree.util.DefaultConfiguration

    /**
     * Default constructor.
     */
    protected FrontendDefaultHandler() {
        this.parserConfiguration = new DefaultConfiguration();
        this.commentHandler = new CommentHandler();
    }
View Full Code Here

Examples of org.jgap.impl.DefaultConfiguration

  private Configuration constructConfiguration(final int threadIndex, final EcEvolver myFunc)
      throws InvalidConfigurationException
  {
    DefaultConfiguration.reset(threadIndex + " thread.");
    final Configuration conf = new DefaultConfiguration(threadIndex + " thread.", threadIndex + " thread.");
    conf.setFitnessFunction(myFunc);
    conf.addGeneticOperator(EcGeneticUtil.getCleansingOperator(this));
    conf.addGeneticOperator(EcGeneticUtil.getOverlordingOperator(this, requiredActions));
    conf.addGeneticOperator(EcGeneticUtil.getInsertionOperator(this));
    conf.addGeneticOperator(EcGeneticUtil.getDeletionOperator(this));
    conf.addGeneticOperator(EcGeneticUtil.getTwiddleOperator(this));
    conf.addGeneticOperator(EcGeneticUtil.getSwapOperator(this));
    conf.setPopulationSize(POPULATION_SIZE);
    conf.setSelectFromPrevGen(1);
    conf.setPreservFittestIndividual(false);
    conf.setAlwaysCaculateFitness(false);
    conf.setKeepPopulationSizeConstant(false);
    Gene[] initialGenes = importInitialGenes(conf);
    Chromosome c = new Chromosome(conf, initialGenes);
    conf.setSampleChromosome(c);
    return conf;
  }
View Full Code Here

Examples of org.jooq.impl.DefaultConfiguration

    @Override
    public String version(SchemaDefinition schema) {
        return "" +
            DSL.using(
                new DefaultConfiguration()
                    .set(connection)
                    .set(new Settings().withStatementType(STATIC_STATEMENT))
            ).fetchValue(
                // [#2906] TODO Plain SQL statements do not yet support named parameters
                sql.replace(":schema_name", "?"), param("schema_name", schema.getInputName())
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.config.DefaultConfiguration

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final ModifiableConfiguration config = new DefaultConfiguration();
    config.setConfigProperty(CSVProcessor.CSV_SEPARATOR, getSeparatorString());
    config.setConfigProperty(CSVProcessor.CSV_DATAROWNAME, String.valueOf(isColumnNamesAsFirstRow()));
    config.setConfigProperty(CSVProcessor.CSV_ENCODING, getEncoding());

    config.setConfigProperty(CSVProcessor.CSV_ENABLE_GROUPFOOTERS, String.valueOf(isEnableGroupFooter()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_GROUPHEADERS, String.valueOf(isEnableGroupHeader()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_ITEMBANDS, String.valueOf(isEnableItembands()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_REPORTFOOTER, String.valueOf(isEnableReportFooter()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_REPORTHEADER, String.valueOf(isEnableReportHeader()));

    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.csv.FileName", getFilename()); //$NON-NLS-1$
    config.setConfigProperty(CSVProcessor.CSV_WRITE_STATECOLUMNS, "false"); //$NON-NLS-1$

    return config;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.config.DefaultConfiguration

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();
    if (full)
    {
      p.setProperty
          ("org.pentaho.reporting.engine.classic.core.modules.gui.html.ExportMethod", "zip"); //$NON-NLS-1$ //$NON-NLS-2$
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.DataDirectory",//$NON-NLS-1$
          getDataFilename());
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.TargetFileName",//$NON-NLS-1$
          getFilename());
    }

    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Keywords",//$NON-NLS-1$
        getKeywords());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Description",//$NON-NLS-1$
        getDescription());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Author",//$NON-NLS-1$
        getAuthor());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Encoding",//$NON-NLS-1$
        getEncoding());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Title",//$NON-NLS-1$
        getHTMLTitle());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.StrictLayout",//$NON-NLS-1$
        String.valueOf(isStrictLayout()));
    return p;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.config.DefaultConfiguration

{
  private ModifiableConfiguration configuration;

  public SettingsRootElementHandler()
  {
    this.configuration = new DefaultConfiguration();
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.config.DefaultConfiguration

    if (configuration == null)
    {
      throw new NullPointerException();
    }

    final DefaultConfiguration defConf = new DefaultConfiguration();
    final Enumeration configProperties = configuration.getConfigProperties();
    while (configProperties.hasMoreElements())
    {
      final String key = (String) configProperties.nextElement();
      final String value = configuration.getConfigProperty(key);
      if (value != null)
      {
        defConf.setConfigProperty(key, value);
      }
    }
    this.configuration = defConf;
  }
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.