Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Introducing the ArchUnit Checker for the Clprolf Framework

One of the most interesting aspects of architectural frameworks is not the rules themselves, but the ability to verify that those rules are actually being followed. The Clprolf Framework now includes an ArchUnit-based checker for Java…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

One of the most interesting aspects of architectural frameworks is not the rules themselves, but the ability to verify that those rules are actually being followed.



The Clprolf Framework now includes an ArchUnit-based checker for Java projects. Rather than relying solely on documentation, Clprolf's structural principles can be validated automatically during development.






What is Clprolf?



Clprolf is a lightweight object-oriented framework built around a simple idea:




A class should clearly express its primary role.




To make this explicit, Clprolf distinguishes between business-oriented classes and technical classes.




Classes
--------
Agent
Worker
Indef_obj

Interfaces
----------
Family_interf
Trait_interf
Compat_interf






The framework is based on two fundamental principles:




  1. Separate business concerns from technical concerns.

  2. Preserve the conceptual domain through inheritance.






Bringing Architecture into the Build Process



Architectural guidelines are often written down, discussed, and eventually forgotten.



The ArchUnit checker takes a different approach: architectural rules become executable tests.



As a result, violations can be detected automatically from IntelliJ IDEA, Maven, or any CI/CD pipeline supporting JUnit.






Core Rules



The ClprolfArchTest checker validates the framework's core rules.






A class cannot be both Agent and Worker






@Agent
@Worker
public class InvalidClass {
}






A class must have a single primary role.









Inheritance must preserve the role



A @Worker class cannot inherit from an @Agent class, and vice versa.



This reflects one of Clprolf's central principles:




inheritance should preserve the conceptual domain.










Family interfaces must match implementation roles



A class implementing a @Family_interf must have a role compatible with the target role of that interface.



For example, an @Agent family interface should normally be implemented by an @Agent class.









Trait interfaces may only extend other trait interfaces



A trait remains a trait throughout the hierarchy.



This keeps interface inheritance structurally coherent.









Clprolf interfaces must declare a target role



Every @Family_interf and @Trait_interf must explicitly declare whether it belongs to the Agent world or the Worker world.






Optional Strict Validation



A second checker, ClprolfStrictArchTest, provides stricter validation rules.



These rules are optional and intended for teams that want complete Clprolf classification across their codebase.






Every class should declare a Clprolf role



Each class should explicitly be:




@Agent






or




@Worker






or




@Indef_obj












Every interface should declare a Clprolf role



Each interface should explicitly be:




@Family_interf






or




@Trait_interf






or




@Compat_interf












Classes should not directly implement trait interfaces



Traits are intended to be inherited through family interfaces rather than implemented directly by concrete classes.









Classes should implement only one primary family interface



Clprolf encourages a structure where a concrete class implements a single primary family interface.



This does not remove multiple interface inheritance. Instead, multiple inheritance is moved to the family interface itself.



For example:




@Agent
@Family_interf
public interface Horse
extends Animal,
Mammal,
Payable {
}






The concrete implementation remains simple:




@Agent
public class HorseImpl implements Horse {
}






This preserves the expressive power of multiple interface inheritance while maintaining a coherent structure for concrete classes.






Why It Matters



Many frameworks provide architectural recommendations.



Clprolf goes one step further by making those recommendations automatically verifiable.



The result is a framework whose structural rules can be checked continuously throughout development, helping teams maintain consistency as projects evolve.



For developers interested in architecture, ArchUnit, or lightweight approaches to object-oriented design, the Clprolf checker provides an interesting example of how architectural principles can become executable rules.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Introducing the ArchUnit Checker for the Clprolf Framework

Thematisch verwandte Begriffe: Introducing, ArchUnit, Checker, Clprolf · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick