You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Paul Bakker (JIRA)" <ji...@apache.org> on 2014/01/07 11:31:56 UTC

[jira] [Commented] (FELIX-4357) Support types beside String/String[] in @Property annotation.

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

Paul Bakker commented on FELIX-4357:
------------------------------------

I'm a bit late for the party, but I agree this is an excellent solution. Thanks!

> Support types beside String/String[] in @Property annotation.
> -------------------------------------------------------------
>
>                 Key: FELIX-4357
>                 URL: https://issues.apache.org/jira/browse/FELIX-4357
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>            Reporter: Marcel Offermans
>            Assignee: Pierre De Rop
>            Priority: Minor
>
> The dependency manager has an extension that allows you to use annotations to specify components, services and their dependencies. One of the supported annotations is @Property, which allows you to specify service properties. However, the values it supports are just String and String[], so if you need other types (for example when specifying a service ranking) you are out of luck. You can use the "workaround" described in the javadoc, which is to use a @Start annotation and method, but it would be more convenient if @Property had support for arbitrary types (for example by just making the value an Object). This issue is about discussing and potentially adding such support.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)