Konture
Main entry point for Konture. All architecture assertion builders, scoping builders, and graph configurations are extended from or accessible through this object.
Properties
Retrieves a file-level functional KontureFileScope representing all files in the project.
Lazily and thread-safely loads the ProjectGraph from the default resource path on first use, or retrieves the default graph if already initialized.
Retrieves a class-level functional KontureScope representing the entire project.
Functions
Unified multi-rule block supporting modules, classes, and layered architecture validations. Runs every declared suite and aggregates all violations before failing.
Verifies that there are no package or module dependency cycles in the project. Throws an AssertionError if a cycle is detected.
Access the class-level declarative assertion rule builder. Allows filtering and assertion of class structure, modifiers, annotations, visibility, and dependencies.
Define and run class dependency/structural rules inside a block-based DSL context. Automatically checks the rules at the end of the block.
Access the file-level declarative assertion rule builder. Allows filtering and assertion of source files and their imports, package, or wildcard usages.
Define and run source file dependency/structural rules inside a block-based DSL context. Automatically checks the rules at the end of the block.
Retrieves a file-level functional KontureFileScope scoped to a specific module path.
Retrieves a file-level functional KontureFileScope scoped to a specific package name.
Access the function-level declarative assertion rule builder. Allows filtering and assertion of function declarations (both top-level and nested member functions).
Define and run function dependency/structural rules inside a block-based DSL context. Automatically checks the rules at the end of the block.
Define and run a nested, type-safe layered architecture specification. Automatically checks the layered rules at the end of the block.
Access the layered-architecture rule builder. Allows defining high-level layers and declaring directional access constraints between them.
Access the modules-level declarative assertion rule builder. Allows filtering and assertion of architectural module structures and dependencies.
Define and run module dependency rules inside a block-based DSL context. Automatically checks the rules at the end of the block.
Access the property-level declarative assertion rule builder. Allows filtering and assertion of property declarations (both top-level and class properties).
Define and run property dependency/structural rules inside a block-based DSL context. Automatically checks the rules at the end of the block.
Retrieves a class-level functional KontureScope scoped to a specific module path.
Retrieves a class-level functional KontureScope scoped to a specific package name.