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
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classstatic class(package private) static class(package private) static class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArchitecturallyEvidentType(com.tngtech.archunit.core.domain.JavaClass type) -
Method Summary
Modifier and TypeMethodDescription(package private) StringReturns 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.JavaClassgetType()Returns theJavaClassbacking theArchitecturallyEvidentType.abstract booleanReturns whether the type is considered an aggregate root in the DDD sense.booleanboolean(package private) booleanisEntity()Returns whether the type is an entity in the DDD sense.booleanbooleanabstract booleanReturns whether the type is considered a repository in the DDD sense.booleanbooleanstatic ArchitecturallyEvidentTypetoString()
-
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 theJavaClassbacking 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
-