Class Types.JMoleculesTypes

java.lang.Object
org.springframework.modulith.core.Types.JMoleculesTypes
Enclosing class:
Types

static class Types.JMoleculesTypes extends Object
  • Field Details

  • Constructor Details

    • JMoleculesTypes

      JMoleculesTypes()
  • Method Details

    • isPresent

      public static boolean isPresent()
      Returns whether jMolecules is generally present.
      See Also:
    • isModulePresent

      public static boolean isModulePresent()
      Returns whether the jMolecules Module type is present. We need to guard for this explicitly as the Kotlin variant of jMolecules DDD does not ship that type.
    • getModuleAnnotationTypeIfPresent

      @Nullable public static Class<? extends Annotation> getModuleAnnotationTypeIfPresent()
    • getIdentifierSource

      Returns an ApplicationModuleSource.ApplicationModuleSourceMetadata for the Module annotation if present.
      Returns:
      will never be null.
    • getRules

      public static Collection<com.tngtech.archunit.lang.ArchRule> getRules()
      Returns all architectural rules to enforce depending on the classpath arrangement.
      Returns:
      will never be null.