Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4871

use component configurations (Config Admin) instead of framework properties

    XMLWordPrintableJSON

Details

    Description

      framework properties have several drawbacks (as discussed in SLING-4649)

      • framework properties have to be set before framework start
      • framework properties can not be changed at runtime
      • framework properties can be shared by multiple components but are used as a last resort here only
      • component configurations otherwise can be created and changed at runtime
      • component configurations serve as documentation also

      for components falling back to repository.home (found by rombert) additionally configurations may be required:

      oak-blob/src/main/java/org/apache/jackrabbit/oak/spi/blob/osgi/FileBlobStoreService.java:    private static final String PROP_HOME = "repository.home";
      oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/AbstractDataStoreService.java:    private static final String PROP_HOME = "repository.home";
      oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStoreService.java:    public static final String DIRECTORY = "repository.home";
      oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexProviderService.java:    public static final String REPOSITORY_HOME = "repository.home";
      

      Not setting repository.home points us quickly to missing component configurations.

      Attachments

        Issue Links

          Activity

            People

              olli Oliver Lietz
              olli Oliver Lietz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: