Class AllowedModuleDependencies
java.lang.Object
com.tngtech.archunit.library.modules.syntax.AllowedModuleDependencies
@PublicAPI(usage=ACCESS,
state=EXPERIMENTAL)
public final class AllowedModuleDependencies
extends Object
Defines which module may depend on which other modules by
Start the definition by following the fluent API through
Extend the definition by calling
module name.Start the definition by following the fluent API through
allow().Extend the definition by calling
fromModule(String) multiple times.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classfinal class -
Method Summary
Modifier and TypeMethodDescriptionallow()Starts the definition ofAllowedModuleDependencies.fromModule(String moduleName) Adds alloweddependenciesthat originate from the module with namemoduleName.
-
Method Details
-
fromModule
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) public AllowedModuleDependencies.RequiringAllowedTargets fromModule(String moduleName) Adds alloweddependenciesthat originate from the module with namemoduleName. Finish this definition viaAllowedModuleDependencies.RequiringAllowedTargets.toModules(String...).- Parameters:
moduleName- Amodule name- Returns:
- An object that allows to specify the allowed targets for this module.
-
allow
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) public static AllowedModuleDependencies.Creator allow()Starts the definition ofAllowedModuleDependencies. Follow up viaAllowedModuleDependencies.Creator.fromModule(String).
-