harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Harmony Wiki] Update of "OSGi-Harmony Runtime" by galaxy
Date Tue, 18 Aug 2009 11:00:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by galaxy:
http://wiki.apache.org/harmony/OSGi-Harmony_Runtime

------------------------------------------------------------------------------
  
      Naturally, there are two ways to meet this purpose:
  
-         A  Implementing the OSGi framework in VM in C/C++ to govern all the java
+         A  Implementing the OSGi framework in VM in C/C++ to govern all the java modules
- modules
  
-         B  Using one of the OSGi-ed framework implemented in java to implemented a
+         B  Using one of the OSGi-ed framework implemented in java to implemented a half
OSGi-ed JRE.
- half OSGi-ed JRE.
  
      Finally I picked the plan B with the well known OSGi framework :Felix .And the reasons
are as follows :
  
@@ -65, +63 @@

  than splitting the modules apart .The final jre include the following
  component :
  
- 
- 
  luni.jar
  
  annotation.jar
@@ -91, +87 @@

  
  the ICU4J folder.
  
- 
- 
  The remaining jars are governed by the OSGi framework to handle. One more
  thing to mention is the two classes
  ,”java.beans.PropertyChangelinstener”,”java.beans.PropertyChangeEvent” has
@@ -101, +95 @@

  classes havn’t imports any other classes in the modules governed by the OSGi
  framework .I think we could include them in any modules lie in the minimum
  runtime as long as the VM could find them .
- 
- 
  
  For B:
  
@@ -118, +110 @@

      Third: Transfer the arguments to the “real “ main class ,invoke the main
  method .
  
- 
- 
  The sequence of class loading is as follows :
- 
- 
  
      First : Check the class name to determine whether it should be loaded by the
  parent class loader .This work is done by specifying the
@@ -138, +126 @@

      Finally : we could not find the class and a ClassNotFoundException will be
  thrown .
  
- 
- 
  Both the OSGi framework and the Harmony do not allow the define , imports or
  exports of java.* classes and packages ,so a lot of examines has been
  removed to facilitate our purpose .

Mime
View raw message