tjwatson commented on issue #52: URL: https://github.com/apache/felix-atomos/issues/52#issuecomment-1118916428
See https://github.com/apache/felix-atomos#adding-layers You would start off with your framework (Felix or Equinox), Atomos and your own module that requires Atomos on the initial module path of the JVM. Then in you main module you would have a main method that could have code like this: ```java Atomos atomos = Atomos.newAtomos(); AtomosLayer bootLayer = atomos.getBootLayer(); // Add a layer that loads all modules contained in "modules-child1" directory Path modulesChild1 = new File("modules-child1").toPath(); AtomosLayer child1 = bootLayer.addLayer("child1", LoaderType.SINGLE, modulesChild1); // Create a new framework to use the layers configured with Atomos Framework framework = atomos.newFramework(Map.of()); ```` Here the `modulesChild1` is a directory and it will load all modules found in that directory, but if you want to be more selective you can pass any number of paths there to individual files that you want loaded instead of a directory full of module files. That framework should have all the modules contained on the JVM module path as well as the modules contained in the "modules-child1" directory. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
