Giter VIP home page Giter VIP logo

osgi-service-demo's Introduction

FELIX-5802

Sample project to reproduce FELIX-5802 (formerly KARAF-5664)

  • api/ project contains interface class
  • activator/ project contains a service registration via Activator (works as expected)
  • annotation/ project contains a service registration via OSGI DS Annotation (FELIX-5802 bug presents itself)
  • service/ project contains a service registration via Service Component (FELIX-5802 bug presents itself)

service:list

karaf@root()> ls io.hyte.api.Service

[io.hyte.api.Service]                                                                                                                                                                                                                                                                                                                                                                          
---------------------                                                                                                                                                                                                                                                                                                                                                                    
service.bundleid = 137                                                                                                                                                                                                                                                                                                                                                                 
service.id = 143                                                                                                                                                                                                                                                                                                                                                                       
service.scope = singleton                                                                                                                                                                                                                                                                                                                                                             
Provided by :                                                                                                                                                                                                                                                                                                                                                                           
   HYTE :: Activator (137)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

[io.hyte.api.Service]                                                                                                                                                                                                                                                                                                                                                                  
---------------------                                                                                                                                                                                                                                                                                                                                                                   
component.id = 6                                                                                                                                                                                                                                                                                                                                                                       
component.name = io.hyte.service.ComponentService                                                                                                                                                                                                                                                                                                                                      
service.bundleid = 138                                                                                                                                                                                                                                                                                                                                                                 
service.id = 144                                                                                                                                                                                                                                                                                                                                                                       
service.scope = bundle                                                                                                                                                                                                                                                                                                                                                                
Provided by :                                                                                                                                                                                                                                                                                                                                                                           
   HYTE :: Service (138)   

[io.hyte.api.Service]
---------------------
component.id = 7
component.name = AnnotationService
service.bundleid = 139
service.id = 145
service.scope = bundle
Provided by : 
   HYTE :: Annotation (139)

scr:info io.hyte.service.ComponentService

karaf@root()> scr:info io.hyte.service.ComponentService
*** Bundle: io.hyte.karaf.service (138)
Component Description:
Name: io.hyte.service.ComponentService
Implementation Class: io.hyte.service.ComponentService
Default State: enabled
Activation: immediate
Configuration Policy: optional
Activate Method: activate
Deactivate Method: deactivate
Modified Method: -
Configuration Pid: [io.hyte.service.ComponentService]
Services: 
  io.hyte.api.Service
Service Scope: singleton
Component Description Properties:
Component Configuration:
  ComponentId: 6
State: active
Component Configuration Properties:
    component.id = 6
    component.name = io.hyte.service.ComponentService

scr:info io.hyte.service.AnnotationService

karaf@root()> scr:info AnnotationService
*** Bundle: io.hyte.karaf.annotation (139)
Component Description:
Name: AnnotationService
Implementation Class: io.hyte.annotation.AnnotationService
Default State: enabled
Activation: delayed
Configuration Policy: optional
Activate Method: activate
Deactivate Method: deactivate
Modified Method: -
Configuration Pid: [AnnotationService]
Services: 
   io.hyte.api.Service
Service Scope: singleton
Component Description Properties:
Component Configuration:
ComponentId: 7
State: satisfied   
Component Configuration Properties:
    component.id = 7
    component.name = AnnotationService

ref: https://issues.apache.org/jira/browse/FELIX-5802

osgi-service-demo's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.