aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Przybysz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1641) OsgiServiceProvider annotation does not publish service.ranking property as integer
Date Mon, 19 Dec 2016 19:12:58 GMT
Dominik Przybysz created ARIES-1641:
---------------------------------------

             Summary: 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