Class ApplicationModule.QualifiedDependency
java.lang.Object
org.springframework.modulith.core.ApplicationModule.QualifiedDependency
- Enclosing class:
- ApplicationModule
-
Constructor Summary
ConstructorDescriptionQualifiedDependency
(com.tngtech.archunit.core.domain.Dependency dependency) QualifiedDependency
(com.tngtech.archunit.core.domain.JavaClass source, com.tngtech.archunit.core.domain.JavaClass target, String description, DependencyType type) Creates a newApplicationModule.QualifiedDependency
from the given source and targetJavaClass
, description andDependencyType
. -
Method Summary
Modifier and TypeMethodDescription(package private) static Stream<ApplicationModule.QualifiedDependency>
allFrom
(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit) boolean
(package private) static ApplicationModule.QualifiedDependency
fromCodeUnitParameter
(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit, com.tngtech.archunit.core.domain.JavaClass parameter) (package private) static ApplicationModule.QualifiedDependency
fromCodeUnitReturnType
(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit) (package private) static Stream<ApplicationModule.QualifiedDependency>
(package private) ApplicationModule
getExistingModuleOf
(com.tngtech.archunit.core.domain.JavaClass javaClass, ApplicationModules modules) com.tngtech.archunit.core.domain.JavaClass
Returns the sourceJavaClass
.com.tngtech.archunit.core.domain.JavaClass
Returns the targetJavaClass
.int
hashCode()
(package private) boolean
hasType
(DependencyType type) Returns whether theApplicationModule.QualifiedDependency
has the givenDependencyType
.(package private) Violations
toString()
-
Constructor Details
-
QualifiedDependency
public QualifiedDependency(com.tngtech.archunit.core.domain.JavaClass source, com.tngtech.archunit.core.domain.JavaClass target, String description, DependencyType type) Creates a newApplicationModule.QualifiedDependency
from the given source and targetJavaClass
, description andDependencyType
.- Parameters:
source
- must not be null.target
- must not be null.description
- must not be null.type
- must not be null.
-
QualifiedDependency
QualifiedDependency(com.tngtech.archunit.core.domain.Dependency dependency)
-
-
Method Details
-
fromCodeUnitParameter
static ApplicationModule.QualifiedDependency fromCodeUnitParameter(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit, com.tngtech.archunit.core.domain.JavaClass parameter) -
fromCodeUnitReturnType
static ApplicationModule.QualifiedDependency fromCodeUnitReturnType(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit) -
fromType
-
allFrom
static Stream<ApplicationModule.QualifiedDependency> allFrom(com.tngtech.archunit.core.domain.JavaCodeUnit codeUnit) -
getSource
public com.tngtech.archunit.core.domain.JavaClass getSource()Returns the sourceJavaClass
.- Returns:
- the source will never be null.
-
getTarget
public com.tngtech.archunit.core.domain.JavaClass getTarget()Returns the targetJavaClass
.- Returns:
- the target must not be null.
-
hasType
Returns whether theApplicationModule.QualifiedDependency
has the givenDependencyType
.- Parameters:
type
- must not be null.- Returns:
-
isValidDependencyWithin
-
getExistingModuleOf
ApplicationModule getExistingModuleOf(com.tngtech.archunit.core.domain.JavaClass javaClass, ApplicationModules modules) -
toString
-
equals
-
hashCode
public int hashCode()
-