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 TypeMethodDescriptionReturns anApplicationModuleSource.ApplicationModuleSourceMetadata
for theModule
annotation if present.static Class<? extends Annotation>
static Collection<com.tngtech.archunit.lang.ArchRule>
getRules()
Returns all architectural rules to enforce depending on the classpath arrangement.static boolean
Returns whether the jMoleculesModule
type is present.static boolean
Returns 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 jMoleculesModule
type is present. We need to guard for this explicitly as the Kotlin variant of jMolecules DDD does not ship that type. -
getModuleAnnotationTypeIfPresent
-
getIdentifierSource
@Nullable public static ApplicationModuleSource.ApplicationModuleSourceMetadata getIdentifierSource()Returns anApplicationModuleSource.ApplicationModuleSourceMetadata
for theModule
annotation if present.- Returns:
- will never be null.
-
getRules
Returns all architectural rules to enforce depending on the classpath arrangement.- Returns:
- will never be null.
-