Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, @Via support in Sling Models is limited to JavaBean properties. It would be useful to be able to extend this and allow for downstream projects to add new @Via providers.
Proposing to support this by extending the @Via annotation
@Via(value = "jcr:content", type = ChildResource.class)
The default type is BeanProperty (the current behavior).
New providers can be added by implementing a ViaProvider SPI and provide a marker class for use in the annotation.
Attachments
Attachments
Issue Links
- Blocked
-
SLING-6778 [Sling Models] Support Delegate Pattern for Models adapted from interfaces
- Closed