Future proof your applications with API Regions
summary
API Regions declares API visibility inside feature models so exported packages are by default feature-local, a global region is visible to everyone, and optional internal regions must be explicitly joined. Build-time Feature Model analyzers (used from Maven via the Sling Feature Model plugin) catch misuse, duplicate exports, and missing imports. Runtime enforcement uses an OSGi resolver hook registered as a resolver factory fragment to block illegal wirings during resolve (no steady-state overhead). Demo builds and runs; removing a deprecated region causes a build error and an unresolved consumer at runtime.
AI-written summary · about
