[
https://issues.apache.org/jira/browse/ARIES-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764129#comment-15764129
]
ASF subversion and git services commented on ARIES-1641:
--------------------------------------------------------
Commit 1775287 from [~alien11689] in branch 'aries/trunk'
[ https://svn.apache.org/r1775287 ]
[ARIES-1641] Add missing file
> 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)