posted 15 years ago
From experience of using Eclipse Platform which uses OSGi, it can export only necessary packages.
For example, we have 2 modules, Module A and Module B. Module A has 10 packages, I can export only 5 packages, so Module B can access only those 5 packages.
About circular dependencies, IMO, we don't need a tool to prevent it to happen, it's wrong, and in most cases it's unacceptable.
If we use Eclipse we couldn't even compile if there are circular dependencies between projects.
OSGi may be able to prevent that to happen but for me that doesn't much necessary.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional