Class ArchitecturallyEvidentType.DelegatingType
java.lang.Object
org.springframework.modulith.core.ArchitecturallyEvidentType
org.springframework.modulith.core.ArchitecturallyEvidentType.DelegatingType
- Enclosing class:
- ArchitecturallyEvidentType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.modulith.core.ArchitecturallyEvidentType
ArchitecturallyEvidentType.DelegatingType, ArchitecturallyEvidentType.JMoleculesArchitecturallyEvidentType, ArchitecturallyEvidentType.ReferenceMethod, ArchitecturallyEvidentType.SpringAwareArchitecturallyEvidentType, ArchitecturallyEvidentType.SpringDataAwareArchitecturallyEvidentType
-
Constructor Summary
ConstructorDescriptionDelegatingType
(com.tngtech.archunit.core.domain.JavaClass type, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isAggregateRoot, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isRepository, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isEntity, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isService, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isController, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isEventListener, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isConfigurationProperties, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isInjectable, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isValueObject, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Collection<com.tngtech.archunit.core.domain.JavaClass>> referenceTypes, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Collection<ArchitecturallyEvidentType.ReferenceMethod>> referenceMethods) -
Method Summary
Modifier and TypeMethodDescriptionStream<com.tngtech.archunit.core.domain.JavaClass>
Returns other types that are interesting in the context of the currentArchitecturallyEvidentType
.boolean
Returns whether the type is considered an aggregate root in the DDD sense.boolean
boolean
boolean
isEntity()
Returns whether the type is an entity in the DDD sense.boolean
boolean
boolean
Returns whether the type is considered a repository in the DDD sense.boolean
boolean
of
(com.tngtech.archunit.core.domain.JavaClass type, List<ArchitecturallyEvidentType> types) Methods inherited from class org.springframework.modulith.core.ArchitecturallyEvidentType
getAbbreviatedFullName, getType, of, toString
-
Constructor Details
-
DelegatingType
DelegatingType(com.tngtech.archunit.core.domain.JavaClass type, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isAggregateRoot, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isRepository, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isEntity, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isService, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isController, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isEventListener, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isConfigurationProperties, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isInjectable, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Boolean> isValueObject, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Collection<com.tngtech.archunit.core.domain.JavaClass>> referenceTypes, com.tngtech.archunit.thirdparty.com.google.common.base.Supplier<Collection<ArchitecturallyEvidentType.ReferenceMethod>> referenceMethods)
-
-
Method Details
-
of
public static ArchitecturallyEvidentType.DelegatingType of(com.tngtech.archunit.core.domain.JavaClass type, List<ArchitecturallyEvidentType> types) -
isAggregateRoot
public boolean isAggregateRoot()Description copied from class:ArchitecturallyEvidentType
Returns whether the type is considered an aggregate root in the DDD sense.- Specified by:
isAggregateRoot
in classArchitecturallyEvidentType
- Returns:
-
isRepository
public boolean isRepository()Description copied from class:ArchitecturallyEvidentType
Returns whether the type is considered a repository in the DDD sense.- Specified by:
isRepository
in classArchitecturallyEvidentType
- Returns:
-
isEntity
public boolean isEntity()Description copied from class:ArchitecturallyEvidentType
Returns whether the type is an entity in the DDD sense.- Overrides:
isEntity
in classArchitecturallyEvidentType
- Returns:
-
isService
public boolean isService()- Overrides:
isService
in classArchitecturallyEvidentType
-
isController
public boolean isController()- Overrides:
isController
in classArchitecturallyEvidentType
-
isEventListener
public boolean isEventListener()- Overrides:
isEventListener
in classArchitecturallyEvidentType
-
isConfigurationProperties
public boolean isConfigurationProperties()- Overrides:
isConfigurationProperties
in classArchitecturallyEvidentType
-
isInjectable
public boolean isInjectable()- Overrides:
isInjectable
in classArchitecturallyEvidentType
-
isValueObject
public boolean isValueObject()- Overrides:
isValueObject
in classArchitecturallyEvidentType
-
getReferenceTypes
Description copied from class:ArchitecturallyEvidentType
Returns other types that are interesting in the context of the currentArchitecturallyEvidentType
. For example, for an event listener this might be the event types the particular listener is interested in.- Overrides:
getReferenceTypes
in classArchitecturallyEvidentType
- Returns:
-
getReferenceMethods
- Overrides:
getReferenceMethods
in classArchitecturallyEvidentType
-