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 2016/07/25 07:53:21 UTC

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

     [ https://issues.apache.org/jira/browse/SLING-4871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Lietz updated SLING-4871:
--------------------------------
    Component/s: Karaf

> 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, Karaf, Launchpad
>            Reporter: Oliver Lietz
>            Assignee: Oliver Lietz
>             Fix For: 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)