Software architecture

Architecture allow-list

Model an exact cross-feature dependency rule. Executed Java 21 fixture.

Formal Syntax & Structure

java syntaxjava
allowed(from,to)

Working Example

Example Snippetjava
public class Main {    static boolean allowed(String from, String to) {        return from.equals("orders") && to.equals("inventory.api");    }    public static void main(String[] args) {        System.out.println(allowed("orders", "inventory.api"));        System.out.println(allowed("orders", "inventory.internal"));        System.out.println(allowed("inventory", "orders.api"));    }}
Java Reference