You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2014/07/22 10:15:41 UTC
[jira] [Closed] (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:all-tabpanel ]
Pierre De Rop closed FELIX-4357.
--------------------------------
Resolution: Fixed
> 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
> Fix For: dependencymanager.shell-3.2.0, dependencymanager.annotations-3.2.0
>
>
> 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.2#6252)