Extending java.base module
david.holmes at oracle.com
Wed Feb 15 12:10:26 UTC 2017
On 15/02/2017 8:03 PM, Langer, Christoph wrote:
> Hi Chris, Max,
> thanks for your quick answers. So the service approach seems to fit quite well.
> But can I assume that my service implementation will be available already at "bootstrap time" of the JDK? E.g. if I need to register/reach my service already at the early stages of JVM initialization, e.g. when a class java.lang.Thread gets initialized, can I assume a service from my extension module would be available?
I'm pretty sure the answer to that will be No! Thread is one of the
earlier classes to be initialized, the module system is initialized much
>> -----Original Message-----
>> From: Chris Hegarty [mailto:chris.hegarty at oracle.com]
>> Sent: Mittwoch, 15. Februar 2017 10:04
>> To: Weijun Wang <weijun.wang at oracle.com>
>> Cc: Langer, Christoph <christoph.langer at sap.com>; jigsaw-
>> dev at openjdk.java.net
>> Subject: Re: Extending java.base module
>>> On 15 Feb 2017, at 08:51, Weijun Wang <weijun.wang at oracle.com> wrote:
>>> Disclaimer: I am not a jigsaw expert.
>>> The provides/uses mechanism is certainly more formal, but you can also do
>> This is, at best, a hack. The use of Services is a better approach, where
More information about the jigsaw-dev