Raymond Augé created FELIX-6518:
-----------------------------------
Summary: Enable interpolation plugin to self reference properties
Key: FELIX-6518
URL: https://issues.apache.org/jira/browse/FELIX-6518
Project: Felix
Issue Type: New Feature
Components: Configuration Admin
Reporter: Raymond Augé
Assignee: Raymond Augé
Fix For: configadmin-interpolation-plugin-1.2.4
Currently there is no interpolation for self referencing another property
within the same configuration.
For example, if you have the following:
{code}
host="https://foo.bar"
resource="${host}/some/resource"
{code}
unless you are specifically using Felix File Install (which supports this)
there will not be any resolving of {{$\{host\}}}.
h3. Proposal
In order to not break any existing use cases, add a new type called {{conf}}
(short for _from configuration_). The above would become:
{code}
host="https://foo.bar"
resource="$[conf:host]/some/resource"
{code}
and be subject to the same features as {{env, prop, secret}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)