Package org.jmolecules.archunit
Class JMoleculesArchitectureRules
- java.lang.Object
-
- org.jmolecules.archunit.JMoleculesArchitectureRules
-
public class JMoleculesArchitectureRules extends Object
ArchUnit rules to verify architectures defined via JMolecules' annotations.- Since:
- 0.5
- Author:
- Oliver Drotbohm
-
-
Constructor Summary
Constructors Constructor Description JMoleculesArchitectureRules()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.tngtech.archunit.library.Architectures.LayeredArchitectureensureLayering()ArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access of all layers below.static com.tngtech.archunit.library.Architectures.LayeredArchitectureensureLayeringStrict()ArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access to the next lower layer only.static com.tngtech.archunit.lang.ArchRuleensureOnionClassical()ArchUnitArchRuledefining the classic Onion Architecture.static com.tngtech.archunit.lang.ArchRuleensureOnionSimple()ArchUnitArchRuledefining a simplified variant of the Onion Architecture.
-
-
-
Method Detail
-
ensureLayering
public static com.tngtech.archunit.library.Architectures.LayeredArchitecture ensureLayering()
ArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access of all layers below.- Returns:
- will never be null.
- See Also:
InterfaceLayer,ApplicationLayer,DomainLayer,InfrastructureLayer
-
ensureLayeringStrict
public static com.tngtech.archunit.library.Architectures.LayeredArchitecture ensureLayeringStrict()
ArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access to the next lower layer only.- Returns:
- will never be null.
- See Also:
InterfaceLayer,ApplicationLayer,DomainLayer,InfrastructureLayer
-
ensureOnionSimple
public static com.tngtech.archunit.lang.ArchRule ensureOnionSimple()
ArchUnitArchRuledefining a simplified variant of the Onion Architecture.- Returns:
- will never be null.
- See Also:
ApplicationRing,DomainRing,InfrastructureRing
-
ensureOnionClassical
public static com.tngtech.archunit.lang.ArchRule ensureOnionClassical()
ArchUnitArchRuledefining the classic Onion Architecture.- Returns:
- will never be null.
- See Also:
ApplicationServiceRing,DomainServiceRing,DomainModelRing,InfrastructureRing
-
-