Class Types.JMoleculesTypes
java.lang.Object
org.springframework.modulith.core.Types.JMoleculesTypes
- Enclosing class:
- Types
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ApplicationModuleSource.ApplicationModuleSourceMetadataReturns anApplicationModuleSource.ApplicationModuleSourceMetadatafor theModuleannotation if present.static @Nullable Class<? extends Annotation>static Collection<com.tngtech.archunit.lang.ArchRule>getRules()Returns all architectural rules to enforce depending on the classpath arrangement.static booleanReturns whether the jMoleculesModuletype is present.static booleanReturns whether jMolecules is generally present.
-
Field Details
-
AT_DOMAIN_EVENT_HANDLER
- See Also:
-
AT_DOMAIN_EVENT
- See Also:
-
DOMAIN_EVENT
- See Also:
-
-
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 jMoleculesModuletype is present. We need to guard for this explicitly as the Kotlin variant of jMolecules DDD does not ship that type. -
getModuleAnnotationTypeIfPresent
-
getIdentifierSource
public static @Nullable ApplicationModuleSource.ApplicationModuleSourceMetadata getIdentifierSource()Returns anApplicationModuleSource.ApplicationModuleSourceMetadatafor theModuleannotation if present.- Returns:
- will never be null.
-
getRules
Returns all architectural rules to enforce depending on the classpath arrangement.- Returns:
- will never be null.
-