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

Konrad Windszus commented on JCRVLT-671:
----------------------------------------

Some of the code of 
https://github.com/apache/sling-whiteboard/blob/ddfd07ef33d07a1d1fad0b19d6e12075f2bfb60e/org.apache.sling.repoinit.filevault.validator/src/main/java/org/apache/sling/repoinit/filevault/validator/RepoInitValidator.java#L1
 can probably be reused for that purpose.

> Add Validator SPI targeted towards OSGi configurations
> ------------------------------------------------------
>
>                 Key: JCRVLT-671
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-671
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: validation
>            Reporter: Konrad Windszus
>            Priority: Major
>
> OSGi configurations in content packages are only supported via the [Sling 
> OSGi 
> Installer|https://sling.apache.org/documentation/bundles/osgi-installer.html].
>  That supports multiple different [serialization 
> formats|https://sling.apache.org/documentation/bundles/configuration-installer-factory.html#configuration-serialization-formats].
>  In order to ease implementing validators for OSGi configurations there 
> should be a dedicated SPI class in 
> https://jackrabbit.apache.org/filevault/apidocs/org/apache/jackrabbit/vault/validation/spi/package-summary.html.
> That should encapsulate detecting serialized OSGi configurations in a content 
> package and deserialize those into {{Dictionary}} as used in 
> https://docs.osgi.org/javadoc/osgi.cmpn/8.0.0/org/osgi/service/cm/Configuration.html#getProperties--



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to