Package org.jmolecules.archunit
Class JMoleculesArchitectureRules
java.lang.Object
org.jmolecules.archunit.JMoleculesArchitectureRules
ArchUnit rules to verify architectures defined via JMolecules' annotations.
- Since:
- 0.5
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.tngtech.archunit.lang.ArchRulestatic com.tngtech.archunit.library.Architectures.LayeredArchitectureArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access of all layers below.static com.tngtech.archunit.library.Architectures.LayeredArchitectureArchUnitArchitectures.LayeredArchitecturedefined by considering JMolecules layer annotations allowing access to the next lower layer only.static com.tngtech.archunit.lang.ArchRuleArchUnitArchRuledefining the classic Onion Architecture.static com.tngtech.archunit.lang.ArchRuleArchUnitArchRuledefining a simplified variant of the Onion Architecture.
-
Constructor Details
-
JMoleculesArchitectureRules
public JMoleculesArchitectureRules()
-
-
Method Details
-
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:
-
InterfaceLayerApplicationLayerDomainLayerInfrastructureLayer
-
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:
-
InterfaceLayerApplicationLayerDomainLayerInfrastructureLayer
-
ensureOnionSimple
public static com.tngtech.archunit.lang.ArchRule ensureOnionSimple()ArchUnitArchRuledefining a simplified variant of the Onion Architecture.- Returns:
- will never be null.
- See Also:
-
ApplicationRingDomainRingInfrastructureRing
-
ensureOnionClassical
public static com.tngtech.archunit.lang.ArchRule ensureOnionClassical()ArchUnitArchRuledefining the classic Onion Architecture.- Returns:
- will never be null.
- See Also:
-
ApplicationServiceRingDomainServiceRingDomainModelRingInfrastructureRing
-
ensureHexagonal
public static com.tngtech.archunit.lang.ArchRule ensureHexagonal()
-