You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (JIRA)" <ji...@apache.org> on 2016/12/20 12:53:58 UTC
[jira] [Closed] (ARIES-1641) OsgiServiceProvider annotation does
not publish service.ranking property as integer
[ https://issues.apache.org/jira/browse/ARIES-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Przybysz closed ARIES-1641.
-----------------------------------
> OsgiServiceProvider annotation does not publish service.ranking property as integer
> -----------------------------------------------------------------------------------
>
> Key: ARIES-1641
> URL: https://issues.apache.org/jira/browse/ARIES-1641
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Reporter: Dominik Przybysz
> Assignee: Dominik Przybysz
> Priority: Critical
> Fix For: blueprint-maven-plugin-1.6.0
>
>
> There is no such option to generate service.ranking property using @OsgiServiceProvider annotation.
> {code:groovy}
> @OsgiServiceProvider(classes = [TaskRepository])
> @Properties([
> @Property(name = "type", value = "db"),
> @Property(name = "service.ranking", value = "100"),
> ])
> {code}
> generates blueprint
> {code:xml}
> <service ref="dbRepository" interface="org.github.alien11689.osgi.task.api.TaskRepository">
> <service-properties>
> <entry key="type" value="db"/>
> <entry key="service.ranking" value="100"/>
> </service-properties>
> </service>
> {code}
> and service properties in Apache Karaf:
> {code}
> osgi.service.blueprint.compname = dbRepository
> service.bundleid = 54
> service.id = 274
> service.scope = bundle
> type = db
> {code}
> The best option is to convert service.ranking property from @Property annotation as ranking attribute in service element.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)