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
ConstructorsConstructorDescriptionDelegatingType(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.booleanReturns whether the type is considered an aggregate root in the DDD sense.booleanbooleanbooleanisEntity()Returns whether the type is an entity in the DDD sense.booleanbooleanbooleanReturns whether the type is considered a repository in the DDD sense.booleanbooleanof(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:ArchitecturallyEvidentTypeReturns whether the type is considered an aggregate root in the DDD sense.- Specified by:
isAggregateRootin classArchitecturallyEvidentType- Returns:
-
isRepository
public boolean isRepository()Description copied from class:ArchitecturallyEvidentTypeReturns whether the type is considered a repository in the DDD sense.- Specified by:
isRepositoryin classArchitecturallyEvidentType- Returns:
-
isEntity
public boolean isEntity()Description copied from class:ArchitecturallyEvidentTypeReturns whether the type is an entity in the DDD sense.- Overrides:
isEntityin classArchitecturallyEvidentType- Returns:
-
isService
public boolean isService()- Overrides:
isServicein classArchitecturallyEvidentType
-
isController
public boolean isController()- Overrides:
isControllerin classArchitecturallyEvidentType
-
isEventListener
public boolean isEventListener()- Overrides:
isEventListenerin classArchitecturallyEvidentType
-
isConfigurationProperties
public boolean isConfigurationProperties()- Overrides:
isConfigurationPropertiesin classArchitecturallyEvidentType
-
isInjectable
public boolean isInjectable()- Overrides:
isInjectablein classArchitecturallyEvidentType
-
isValueObject
public boolean isValueObject()- Overrides:
isValueObjectin classArchitecturallyEvidentType
-
getReferenceTypes
Description copied from class:ArchitecturallyEvidentTypeReturns 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:
getReferenceTypesin classArchitecturallyEvidentType- Returns:
-
getReferenceMethods
- Overrides:
getReferenceMethodsin classArchitecturallyEvidentType
-