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

Andreas Schaefer commented on SLING-8655:
-----------------------------------------

I updated the PRs with an updated version that provides a Json Serializer. This 
was not to do as the serializer does not have a reference to OSGi system nor 
does it has access to the underlying resource of the Model.

My expertise is limited when it comes to Sling Models and Jackson and so I 
might have gone awry here. That said I have the most trouble with finding a 
solution for the Annotation Parameters to create an elegant way to tell the 
Externalized Path Provider to get the services it needs but I though with the 
Resource one can get the most out of Sling with adaption and so this is what I 
did.

> Add an Annotation to Sling Model to mark a property to be Externalized
> ----------------------------------------------------------------------
>
>                 Key: SLING-8655
>                 URL: https://issues.apache.org/jira/browse/SLING-8655
>             Project: Sling
>          Issue Type: New Feature
>          Components: Sling Models
>    Affects Versions: Sling Models API 1.3.8
>            Reporter: Andreas Schaefer
>            Assignee: Andreas Schaefer
>            Priority: Major
>             Fix For: Sling Models API 1.3.10
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> For Peregrine CMS we use Sling Models to obtain data in JSon format to be 
> rendered on the client side. This means that the returned content is not 
> externalized aka paths are not mapped to the external view.
> Sling Model should have an Annotation (@ExternalizedPath) that marks a 
> property to be externalized when loaded.
> In order to be flexible the Externalized Path Injector should be pluggable so 
> that customers can add their custom Externalized Path Providers if they 
> choose to do so. By default there is a provider that uses the Resource 
> Resolver's map() function.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to