You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2015/07/10 13:05:05 UTC

[jira] [Created] (SLING-4871) use component configurations (Config Admin) instead of framework properties

Oliver Lietz created SLING-4871:
-----------------------------------

             Summary: use component configurations (Config Admin) instead of framework properties
                 Key: SLING-4871
                 URL: https://issues.apache.org/jira/browse/SLING-4871
             Project: Sling
          Issue Type: Improvement
          Components: Best practices, Launchpad
            Reporter: Oliver Lietz
            Assignee: Oliver Lietz
             Fix For: Launchpad Karaf Features 0.2.0, Launchpad Builder 8


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:

{noformat}
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";
{noformat}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)