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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.tngtech.archunit.library.Architectures.LayeredArchitecture
    ArchUnit Architectures.LayeredArchitecture defined by considering JMolecules layer annotations allowing access of all layers below.
    static com.tngtech.archunit.library.Architectures.LayeredArchitecture
    ArchUnit Architectures.LayeredArchitecture defined by considering JMolecules layer annotations allowing access to the next lower layer only.
    static com.tngtech.archunit.lang.ArchRule
    ArchUnit ArchRule defining the classic Onion Architecture.
    static com.tngtech.archunit.lang.ArchRule
    ArchUnit ArchRule defining a simplified variant of the Onion Architecture.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JMoleculesArchitectureRules

      public JMoleculesArchitectureRules()
  • Method Details

    • 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