ModuleClassLoader inheritance issue
David M. Lloyd
david.lloyd at redhat.com
Tue Feb 28 07:51:50 PST 2012
On 02/28/2012 09:20 AM, mark.reinhold at oracle.com wrote:
> 2012/2/28 5:37 -0800, alan.bateman at oracle.com:
>> On 28/02/2012 12:55, Alexey Fedorov wrote:
>>> Is java.lang.module.ModuleClassLoader class planned to be final? Or does
>>> modular-jdk Team plan to add some documentation containing
>>> overriding/inheritance rules for new Modular API?
>>
>> I would say it's TBD for now.
>
> ModuleClassLoader will almost certainly wind up being final.
I would strongly recommend against that, as it would prevent OSGi from
functioning in a modular environment.
The approach we had for JBoss Modules was to make most methods final,
and have a constructor which accepted an opaque configuration object.
Then the module loader implementation could specify a module class
loader factory to use, which allowed subclasses to implement additional
interfaces.
--
- DML
More information about the jigsaw-dev
mailing list