Reference Java constants for property values.
---------------------------------------------
Key: FELIX-478
URL: https://issues.apache.org/jira/browse/FELIX-478
Project: Felix
Issue Type: Improvement
Components: Maven SCR Plugin
Reporter: Carsten Ziegeler
Current a property value can only be specified directly like @scr.property
value="something".
This often leads to typos as it's not possible to verify at build time if the
value is correct.
A new attribute valueRef can point to a constant of an (importet) Java class,
so something like
@scr.property valueRef="MyConstants.TOPIC" or @scr.property valueRef="TOPIC"
will be possible.
The plugin will detect at build time if the constant is available.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.