public interface ModuleSpecController
ProjectModule to modify the process of defining the modules and their
dependencies.
This can be useful for example in situations where you need to have some classes loaded from the system classpath and not through the module system.
| Modifier and Type | Field and Description |
|---|---|
static ModuleSpecController |
NOOP |
| Modifier and Type | Method and Description |
|---|---|
default void |
end(String moduleName)
Called as the last method when processing a module of given name.
|
default void |
modify(org.jboss.modules.ModuleSpec.Builder bld)
Called after all dependencies were processed using
modifyDependency(String, DependencySpec). |
default org.jboss.modules.DependencySpec |
modifyDependency(String dependencyName,
org.jboss.modules.DependencySpec original)
Gives the controller a chance to modify how a module depends on the detected dependencies.
|
default void |
start(String moduleName)
Called to inform the controller that a module with given name is about to be processed.
|
static final ModuleSpecController NOOP
default void start(String moduleName)
This is the first call into the controller for any given module.
moduleName - the name of the moduledefault org.jboss.modules.DependencySpec modifyDependency(String dependencyName, org.jboss.modules.DependencySpec original)
This is called after start(String) zero or more times depending on the number of dependencies
automatically detected for given module.
dependencyName - the name of the detected dependencyoriginal - the dependency spec as defined using the default strategydefault void modify(org.jboss.modules.ModuleSpec.Builder bld)
modifyDependency(String, DependencySpec).
This gives the controller a chance to modify the module as a whole - add additional dependencies, change the declared version, etc.
bld - the builder of the module specificationdefault void end(String moduleName)
moduleName - the name of the module that has been processedCopyright © 2020 Lukas Krejci. All rights reserved.