Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
The current solution approach seems to be moving away from having multiple annotations attached to a field more towards having the injectors support a set of parameters that do the same job.
Currently, it is possible to combine the
@Default (values = "myvalue")
annotation with a
@ValueMapValue
It would be nice if the default value could be handled as a parameter of ValueMapValue instead
So instead of:
@ValueMapValue @Default (values = "myvalue") String fieldname;
it would be nice to support:
@ValueMapValue(defaults = "myvalue") String fieldname;
I think this would be in line with the solution approach taken for the injector specific annotations
Attachments
Issue Links
- duplicates
-
SLING-10256 Default value support for ValueMapValue
- Open