[ 
https://issues.apache.org/jira/browse/SLING-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15484393#comment-15484393
 ] 

Stefan Seifert commented on SLING-6023:
---------------------------------------

implementation proposal:
https://github.com/apache/sling/pull/171

i dropped the feature to register different context path strategies to 
different paths, this is too complex. if multiple context path strategies exist 
they can co-exist and the results of all strategies are merged. this allows to 
use the default strategy in most places, and an own strategy only on certain 
places the strategy returns results for.

before i'm applying this i will start an implementation for SLING-6026 as well 
to see if they fit together.

> Context-Aware Config: Add pluggable context paths strategies
> ------------------------------------------------------------
>
>                 Key: SLING-6023
>                 URL: https://issues.apache.org/jira/browse/SLING-6023
>             Project: Sling
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>              Labels: contextaware-config
>             Fix For: Context-Aware Configuration 1.0.0
>
>
> by default the context paths for which configurations can be linked are 
> defined by the existence of a {{sling:config}} property on that node.
> we want to keep this as default behavior, but this is getting cumbersome if a 
> "massive multi-tenant scenario" is used with hundreds of sites grouped by 
> regions etc. that follow up a consistent repository scheme. in this case it 
> would be easier to not to be forced to create a sling:config property on each 
> site root and link it to the correct configuration (and move it when the site 
> is moved), but to provide an own strategy implementation how these context 
> paths are detected.
> new strategies can be registered as OSGi services, service ranking controls 
> which is asked first. via a service property it should be possible to 
> register a special strategy only for a subpath e.g. /content/tenant1 it 
> should apply to.



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

Reply via email to