Find service in a layer with multiple classloaders[2]

2020-12-04 Thread Alex Orlov
Sorry, there was a typo in the previous message.   Correct > As I understand to find * FooService * in this layer we can use class loader of ANY module in this layer (any of a,b,c)...   -- Best regards, Alex Orlov

Find service in a layer with multiple classloaders

2020-12-04 Thread Alex Orlov
or not?   -- Best regards, Alex Orlov

Re[2]: Why service provider method is called "provider", but not "provide"?

2020-11-24 Thread Alex Orlov
s"? I mean META-INF/services. We do create this folder and its content to give service implementations (i.e. providers), but not to inform, that there are the following service interfaces.     -- Best regards, Alex Orlov     >Вторник, 24 ноября 2020, 15:12 +03:00 от Alan Bateman >: >

Re[2]: Why service provider method is called "provider", but not "provide"?

2020-11-24 Thread Alex Orlov
n a value, that provides a hashCode. I still think that provider() name is not quite good. I would name it either "service" or "provide".     -- Best regards, Alex Orlov     >Вторник, 24 ноября 2020, 10:26 +03:00 от David Holmes >: >  >On 24/11/2020 4:46 pm, Alex Orlov wrote:

Re[2]: Why service provider method is called "provider", but not "provide"?

2020-11-24 Thread Alex Orlov
/consumer. And even in https://docs.oracle.com/javase/9/docs/api/java/util/ServiceLoader.Provider.html we assume that this is a provider, and using this provider you can get a service.     -- Best regards, Alex Orlov     >Вторник, 24 ноября 2020, 7:47 +03:00 от David Holmes : >  >On 23/

Re[2]: Why service provider method is called "provider", but not "provide"?

2020-11-23 Thread Alex Orlov
ovider will be created on the base of the information taken from TheServiceProvider.provider() method using reflection?   -- Best regards, Alex Orlov     >Понедельник, 23 ноября 2020, 11:47 +03:00 от Alan Bateman >: >  >On 23/11/2020 08:28, Alex Orlov wrote: >> >> I don’t agree wi

Re[2]: Why service provider method is called "provider", but not "provide"?

2020-11-23 Thread Alex Orlov
> The method does return a "provider". It returns the object that is an > instance of a class that provides the service - hence that object is a > provider.   I don’t agree with that. It returns the object that is an instance of the service.     -- Best regards, Alex Orlov  

Why service provider method is called "provider", but not "provide"?

2020-11-20 Thread Alex Orlov
And, as I understand, provider is usually the class, that has "provide" method.   Of course that’s not very important, but it is JDK, so it was developed by very experienced java developer who should know java naming convention and I want to understand why this did so. Could anyone explain?     -- Best regards, Alex Orlov

JPMS layer graph type

2020-11-17 Thread Alex Orlov
Hello all,   I try to determine the type of JPMS layers graph and as I understand it is a directed acyclic graph. Could anyone say if this is right or wrong.     -- Best regards, Alex Orlov

Re[2]: add-opens for dynamically created layers

2020-11-16 Thread Alex Orlov
Hello Alan,   Thank you very much for your help. With ModuleLayer.Controller I solved the problem. Do I understand it correctly — it is impossible to get reference to boot layer controller, isn’t it?     -- Best regards, Alex Orlov     >Понедельник, 16 ноября 2020, 22:27 +03:00 от Alan Bate

add-opens for dynamically created layers

2020-11-16 Thread Alex Orlov
package is in boot layer, but in my situation fw.module that is in boot layer knows nothing about web application modules.   So, could anyone say how to fix this problem?     -- Best regards, Alex Orlov

Re[2]: How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-16 Thread Alex Orlov
API). So, the question. How to ask JPMS not to ignore modules that it must add to layer?           -- Best regards, Alex Orlov     >Понедельник, 16 ноября 2020, 11:20 +03:00 от Alan Bateman >: >  >On 15/11/2020 19:16, Alex Orlov wrote: >> Hi all, >> >>

How to do “--add-modules” with dynamically created layer in JPMS?

2020-11-15 Thread Alex Orlov
-modules jvm argument. However, I couldn't find any information how to force JPMS load my module (even if its classes are not used) for dynamically created layers.   Could anyone say how to do it?     -- Best regards, Alex Orlov

Re[2]: Force JPMS to add module to boot layer

2020-06-23 Thread Alex Orlov
they add modules to module path, but JPMS will ignore them.   Best regards,     >I can't explain why you don't see issues when you use module layers. It >is possible that you've specified "net.bytebuddy" in the list of root >modules that you specify to the resolve method? > >-Alan     -- Alex Orlov  

Re[2]: Force JPMS to add module to boot layer

2020-06-22 Thread Alex Orlov
regards,         >Понедельник, 22 июня 2020, 18:35 +03:00 от Alan Bateman >: >  >On 21/06/2020 19:52, Alex Orlov wrote: >> Hi all, >> >> New version of maven-failsafe-plugin (3.0.0-M5) has been released and now it >> is possible to have two module-info in o

Force JPMS to add module to boot layer

2020-06-21 Thread Alex Orlov
child layer and add any jars to it. In this case JPMS doesn’t ignore any modules. Is this statement right?     -- Alex Orlov

Is it possible to add classes to JPMS module dynamically?

2020-06-04 Thread Alex Orlov
) so as JPMS work with it as it works with module existing classes?     -- Alex Orlov

JPMS module-path and layers

2020-05-19 Thread Alex Orlov
layer. Is this correct? Could anyone help me with these questions?   -- Alex Orlov