Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattrpav/osgi-service-demo
https://github.com/mattrpav/osgi-service-demo
felix felix-framework karaf scr
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattrpav/osgi-service-demo
- Owner: mattrpav
- Created: 2018-03-09T18:54:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T02:58:41.000Z (almost 7 years ago)
- Last Synced: 2024-12-31T13:44:15.686Z (about 1 month ago)
- Topics: felix, felix-framework, karaf, scr
- Language: Java
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FELIX-5802
Sample project to reproduce [FELIX-5802](https://issues.apache.org/jira/browse/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