aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1641) OsgiServiceProvider annotation does not publish service.ranking property as integer
Date Mon, 02 Jan 2017 14:31:58 GMT

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

ASF GitHub Bot commented on ARIES-1641:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/aries/pull/60


> 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)

Mime
View raw message