I have a system which can have plugins at runtime, and these plugins need to expose DI modules that should be loaded into the application. What is the best way of doing this? One approach I was thinking about was using a Java
ServiceLoader
but is there a "native" way?