OSGi in a nutshell [note]

OSGi specification

l        An open specification for the delivery of managed services to networked environment.

l        OSGi services platform: OSGi framework & a set of standard service definitions

 

The OSGi framework

l        OSGi framework : sits on the top of JVM, the excution environment for services

l        Involves : Services Platform & Deployment infrastructure

 

Services Platform

software platform that supports the service orientation interaction, involves:

l        Service Registry : belongs to the services platform

l        Service Provider(bundle) : publish service description

l        Service Requester(bundle) : discover service and bind to Service Provider

 

Bundle

l        Both a logical as well as physical entity

l        JAR file contains code, resources and manifest file(bundle information)

l        Responsible for run-time service dependency management activities: publication, discovery, binding, adapting to change resulting

 

Deployment infrastructure

l        continuous deployment activities : installation, removal, update, starting(activation), stopping(de-activation) of a physical bundle

l        The activation or de-activation of a physical bundle results in the creation or destruction of a unique logical bundle, materialized by a bundle activator.

l        When the logical bundle is active, can publish or discover services and bind with other bundles, also be notified from changes that occur in the framework by subscribing as an event listener(service orientation interaction).

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值