Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2663

Allow ConfigInstaller to perform placeholder substitution from framework properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • fileinstall-3.0.2
    • fileinstall-3.1.0
    • File Install
    • None

    Description

      The ConfigInstaller class will perform placeholder substitution using configuration values defined elsewhere in the .cfg file or using System properties. Would be nice if it could also use properties defined by the framework (i.e. BundleContext.getProperty())

      The use case is this: As part of the OSGi framework initialization, some properties are set on the framework that define things such as a "home" directory. The various configuration files could then refer to resources relative to this "home" directory. For example:

      props.setProperty("app.home", homeDir); // homeDir provided by JNDI config, env variable, etc.
      frameworkFactory.newFramework(props);

      ...

      Then, in a configuration file read by the FileInstall bundle, it would be nice to be able to do:

      data.directory=${app.home}/data/

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            dhay David Hay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: