Class JMoleculesArchitectureRules


  • public class JMoleculesArchitectureRules
    extends Object
    ArchUnit rules to verify architectures defined via JMolecules' annotations.
    Since:
    0.5
    Author:
    Oliver Drotbohm
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.tngtech.archunit.library.Architectures.LayeredArchitecture ensureLayering()
      ArchUnit Architectures.LayeredArchitecture defined by considering JMolecules layer annotations allowing access of all layers below.
      static com.tngtech.archunit.library.Architectures.LayeredArchitecture ensureLayeringStrict()
      ArchUnit Architectures.LayeredArchitecture defined by considering JMolecules layer annotations allowing access to the next lower layer only.
      static com.tngtech.archunit.lang.ArchRule ensureOnionClassical()
      ArchUnit ArchRule defining the classic Onion Architecture.
      static com.tngtech.archunit.lang.ArchRule ensureOnionSimple()
      ArchUnit ArchRule defining a simplified variant of the Onion Architecture.
    • Constructor Detail

      • JMoleculesArchitectureRules

        public JMoleculesArchitectureRules()
    • Method Detail

      • ensureLayering

        public static com.tngtech.archunit.library.Architectures.LayeredArchitecture ensureLayering()
        ArchUnit Architectures.LayeredArchitecture defined 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()
        ArchUnit Architectures.LayeredArchitecture defined 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()
        ArchUnit ArchRule defining 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()
        ArchUnit ArchRule defining the classic Onion Architecture.
        Returns:
        will never be null.
        See Also:
        ApplicationServiceRing, DomainServiceRing, DomainModelRing, InfrastructureRing