Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 16089 invoked from network); 2 Apr 2009 03:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2009 03:33:43 -0000 Received: (qmail 51251 invoked by uid 500); 2 Apr 2009 03:33:42 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 51162 invoked by uid 500); 2 Apr 2009 03:33:42 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 51151 invoked by uid 99); 2 Apr 2009 03:33:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 03:33:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harmonymail.ty@gmail.com designates 74.125.92.150 as permitted sender) Received: from [74.125.92.150] (HELO qw-out-1920.google.com) (74.125.92.150) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 03:33:33 +0000 Received: by qw-out-1920.google.com with SMTP id 5so322005qwf.24 for ; Wed, 01 Apr 2009 20:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=GhvBI8UNZjCdezC41uq4fLDmoyAooewA2kgspn2gqlI=; b=SU335UcDId2uCVZp16ON/BlXlQsSdPJHXj0iZ368hEWSP738uz8JLhbSut+/GCY7H9 6eTIaiuxPSlJ0m3l3Y+n3lMpC1NSwcv8Of7ZRdprrKTf/iI59huHY4F02CNsRt6ObN+4 YOspY5yY38DVPAGBOfoEHH6oL9o7b/ALPKzxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wTh7wLS2sRdIlcjYFRF9jtrhDqaoEC+ZSQx1jDsbrNHzdlg/vYe7JfJ0AyswA2MLLm lroPlTpI2MDOe5RufMX3pnQYLoYV4NGDSey/25BeIGOhROGfjLn6Z3wD0EQr+Cvxr5Uu liN6mDpkwbJGLwD6OkHwsjaUHnntz2dNURwe0= MIME-Version: 1.0 Received: by 10.220.100.83 with SMTP id x19mr2623026vcn.84.1238643191794; Wed, 01 Apr 2009 20:33:11 -0700 (PDT) Date: Thu, 2 Apr 2009 11:33:11 +0800 Message-ID: Subject: [GOSP]Proposal For OSGi From: tian galaxy To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=0016e6464f6e73524e04668a17de X-Virus-Checked: Checked by ClamAV on apache.org --0016e6464f6e73524e04668a17de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi All : My name is Tian Yu ,I am a post graduate students from Shanghai Jiaotong University . I have just submit proposal for the summer code on Harmony OSGi.I want to send all of you a copy of my proposal cause I know my plan could not be the best one and need further improvement .So suggestions and comments of any kind is welcome and will be appreciated . I paste the detailed description below . *Detailed Description:* OSGi has a lot of advantages due to its ability to manage modules' dependences and the service it provided,like you could register different versions of bundles of the type simutaneously and let the user to choose according to version numbers ,not the classpath. Apache Harmony JRE implementation has already been designed to be modularized and least coupled amongest the module . If we could integrate the two together , we will bring great flexibility to the development and update of Harmony.And more importantly this will be more attractive to users for it is more easy to use Since you could pick which module, which version , which package to use .More than one version of the this same module could also be used in one application. So this is a very meaningful and interesting project . I already have some draft ideas of how to implement this but any suggestions and comments are welcome and will be appreciated. I think our project could be further divede into four subtasks Subtask 1: As we all know there are already several successful implementations of OSGi ,the most popular ones are Equinox ,Knopferfish ,Felix .I think since Equinox and Felix are more related to Harmony ,we could investigate on them to see how they could help us on this if permitted. (I have installed both of them on my PC and run some small programs I wrote on them .I found both of them are easy to use , more impressived by OSGi itself.) Subtask 2: Though the modularization structure of Harmony has made this project a lot easier than it should be , there also are many tough issues we should handle.The dependecies issue if one the main issues should be concerned with.As the ability to handle dependecy is one of main attributes of OSGi , the development of dependency structure is very important .I think harmony may already has many information and conclusions of the mutual dependency between modules .So the work is to develop the dependency structure suits OSGi and Harmony best . I think its necessary to make a more comprehensive investigation on the inner structure of Harmony . Subtask 3: With 3 month it is hard to make huge changes .So we may borrow some ideas of the implementation of J2EE ,as to add an extra interface to the class loader and make some adaptations .First of all , a bundle to manage the OSGi itself is needed and should be loaded first .This module should be able to manage the information of each bundle such as dependecy ,and should be able to provide services to core to OSGi (Fisrt to implement the functions very core in the OSGi spec then add more). When we need extra classes to load into the VM , we should load it through the OSGi manage bundle:first examine which package , bundle the class belongs to in the list of registered bundles using dependency information then load the specified package . Subtask 4 : We could incorporate some module into Harmony to help the development of OSGi programm ,as what the "bnd" do (if there is still enough time ).This could futher reveal Harmony's advantage and feature as an OSGi-ed JDK. Time available : At least 3 month(May-August) .Actually could start to prapare any time before that .More than 5 hours one day . --0016e6464f6e73524e04668a17de--