Dynamic services
The OSGi specification defines four different layers:
- Security Layer: In this layer, all actions are checked against a security permissions model
- Module Layer: In this layer, modules are specified as bundles that have dependencies
- Life Cycle Layer: This layer bundles coming and going and firing events
- Service Layer: In this layer, dynamic services that come and go
The Services layer allows bundles to communicate by defining an API that can cross bundle layers. However, the services layer also allows the services to come and go dynamically, instead of being fixed at runtime.
This mechanism allows services to be exported over a network, and since the network can come and go (as can the remote endpoint) the OSGi services layer can replicate ...
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.