deep web arch for refactor

OSGi框架启动流程解析
本文详细介绍了OSGi框架的启动过程,从sysboot阶段开始,包括WebPresentationPlugModule的激活,到servlet注册及HTTP请求处理机制。通过具体步骤揭示了OSGi环境下Web应用的加载和服务提供方式。
process:
    一:sys boot
        1:Bundle-Activator: org.hippoproject.framework.web.osgi.WebPresentationPlugModule
        2:WebPresentationPlugModule extends BasePlugModule
        3:preStarted(BundleContext context
    二:servlet ready
       1:new Servlet(new HippoWebFrameworkServlet(this,presentationManager);)
       2:org.osgi.service.http.HttpService.registerServlet
            httpService.registerServlet(this.getConfiguration().getPlugModuleProperties().get("serviceRoot"), this.frameworkServlet, null, null);
       3:when a http request come,the osgi httpService implementer send the request(or invoke registed servlet method) and then our Servlet instance will work
    三:inner logic process(isolation http)
      
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值