public final class ModulesXmlLocator
extends java.lang.Object
| Constructor and Description |
|---|
ModulesXmlLocator(java.lang.String targetSlot)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ModulesDescriptor> |
discover(java.lang.ClassLoader classLoader,
java.util.List<java.io.File> rootDirectories)
Discovers all module descriptors on the class path.
|
public ModulesXmlLocator(java.lang.String targetSlot)
targetSlot - the name of the slot to map modules without slot to.public java.util.List<ModulesDescriptor> discover(java.lang.ClassLoader classLoader, java.util.List<java.io.File> rootDirectories) throws java.io.IOException
classLoader - the class loader whose class path is searched.rootDirectories - additional root directories to check first.java.io.IOException - if resources cannot be loaded from the class path.