ServiceLoader in the JDK

Alan Bateman Alan.Bateman at oracle.com
Thu May 24 10:05:18 PDT 2012


On 24/05/2012 17:49, Jesse Glick wrote:
> On 05/24/2012 11:43 AM, David M. Lloyd wrote:
>> Then you're saying that Jigsaw proposes to introduce a new way to 
>> represent the current running application other than by class loader 
>> (and, by extension, module)?
>
> Well you specify an application module to run from the Java launcher. 
> But this means that various modules will be loaded in the module 
> configuration:
>
> 1. The selected module.
> 2. Its declared dependencies.
> 3. Transitive dependencies of #2.
> 4. Perhaps other modules in the library which provide services some of 
> #1-#3 require. Not sure if this has been implemented yet,
Yes, it's there (and just to say that everything is loaded lazily, not 
when the configuration be loaded).

-Alan



More information about the jigsaw-dev mailing list