Class ArchitecturallyEvidentType
java.lang.Object
org.springframework.modulith.core.ArchitecturallyEvidentType
- Direct Known Subclasses:
ArchitecturallyEvidentType.DelegatingType
,ArchitecturallyEvidentType.JMoleculesArchitecturallyEvidentType
,ArchitecturallyEvidentType.SpringAwareArchitecturallyEvidentType
,ArchitecturallyEvidentType.SpringDataAwareArchitecturallyEvidentType
A type that is architecturally relevant, i.e. it fulfills a significant role within the architecture.
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
static class
(package private) static class
(package private) static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
ArchitecturallyEvidentType
(com.tngtech.archunit.core.domain.JavaClass type) -
Method Summary
Modifier and TypeMethodDescription(package private) String
Returns the abbreviated (i.e.Stream<com.tngtech.archunit.core.domain.JavaClass>
Returns other types that are interesting in the context of the currentArchitecturallyEvidentType
.com.tngtech.archunit.core.domain.JavaClass
getType()
Returns theJavaClass
backing theArchitecturallyEvidentType
.abstract boolean
Returns whether the type is considered an aggregate root in the DDD sense.boolean
boolean
(package private) boolean
isEntity()
Returns whether the type is an entity in the DDD sense.boolean
boolean
abstract boolean
Returns whether the type is considered a repository in the DDD sense.boolean
boolean
static ArchitecturallyEvidentType
toString()
-
Constructor Details
-
ArchitecturallyEvidentType
protected ArchitecturallyEvidentType(com.tngtech.archunit.core.domain.JavaClass type)
-
-
Method Details
-
of
public static ArchitecturallyEvidentType of(com.tngtech.archunit.core.domain.JavaClass type, Classes beanTypes) - Parameters:
type
- must not be null.beanTypes
- must not be null.- Returns:
-
getType
public com.tngtech.archunit.core.domain.JavaClass getType()Returns theJavaClass
backing theArchitecturallyEvidentType
.- Returns:
- the type wnn
-
getAbbreviatedFullName
String getAbbreviatedFullName()Returns the abbreviated (i.e. every package fragment reduced to its first character) full name.- Returns:
- will never be null.
-
isEntity
boolean isEntity()Returns whether the type is an entity in the DDD sense.- Returns:
-
isAggregateRoot
public abstract boolean isAggregateRoot()Returns whether the type is considered an aggregate root in the DDD sense.- Returns:
-
isRepository
public abstract boolean isRepository()Returns whether the type is considered a repository in the DDD sense.- Returns:
-
isService
public boolean isService() -
isController
public boolean isController() -
isEventListener
public boolean isEventListener() -
isConfigurationProperties
public boolean isConfigurationProperties() -
isInjectable
public boolean isInjectable() -
isValueObject
public boolean isValueObject() -
getReferenceTypes
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.- Returns:
-
getReferenceMethods
-
toString
-