harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: Class Library Modularity [Was Re: State of the World]
Date Wed, 11 May 2005 06:25:53 GMT
Hi,

Richard S. Hall wrote:

> Just to raise the point about class library modularity again, since it 
> is related to this comment. Access [and assumptions about access] to 
> these types of classes is problematic when trying to implement 
> stronger Java modularity mechanisms, such as is the case with the OSGi 
> framework.

Java already has the ability to define "Optional Packages"/Extensions 
that have similar features to OSGis bundles. For an overview check out

http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html

You can declare the id/version/vendor for both the specification and 
implementation of a module. You can also declare dependencies on other 
modules. However given the spagetti that the standard runtime is it may 
not be entirely possible to do in a clean manner.

--
Cheers,

Peter Donald
"Never interrupt your enemy when he is making
a mistake." - Napoleon Bonaparte (1769-1821)

Mime
View raw message