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)
一: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)
OSGi框架启动流程解析
本文详细介绍了OSGi框架的启动过程,从sysboot阶段开始,包括WebPresentationPlugModule的激活,到servlet注册及HTTP请求处理机制。通过具体步骤揭示了OSGi环境下Web应用的加载和服务提供方式。
2141

被折叠的 条评论
为什么被折叠?



