You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (Jira)" <ji...@apache.org> on 2019/11/09 15:46:00 UTC

[jira] [Commented] (FELIX-6192) Support default values and type conversion

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

David Bosschaert commented on FELIX-6192:
-----------------------------------------

I've implemented the defaulting (committed) and at least an initial version of the type conversion code.

SVN is acting up so I can't commit the type conversion code right now. Will try again soon.

> Support default values and type conversion
> ------------------------------------------
>
>                 Key: FELIX-6192
>                 URL: https://issues.apache.org/jira/browse/FELIX-6192
>             Project: Felix
>          Issue Type: New Feature
>          Components: Configuration Admin
>    Affects Versions: configadmin-interpolation-plugin-0.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: David Bosschaert
>            Priority: Major
>             Fix For: configadmin-interpolation-plugin-0.0.4
>
>
> It would be nice if the interpolation plugin could support default values as well as type conversion, especially supporting arrays.
> The format could be
> [<prefix>:<name>;type=<type>;default=<value>]
> where type and default are optional, type defaulting to String.
> We should support primitive types and arrays of primitive types. The usual separator for values could be a comma (providing to support escaping a comma in a value)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)