Class ApplicationModule.DeclaredDependencies
java.lang.Object
org.springframework.modulith.core.ApplicationModule.DeclaredDependencies
- Enclosing class:
- ApplicationModule
A collection wrapper for
ApplicationModule.DeclaredDependency instances.- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionclosed(List<ApplicationModule.DeclaredDependency> dependencies) booleaninthashCode()booleanisAllowedDependency(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClassis a valid dependency.booleanisAllowedDependency(Class<?> type) (package private) static booleanopen()toString()
-
Method Details
-
isOpen
-
open
-
closed
public static ApplicationModule.DeclaredDependencies closed(List<ApplicationModule.DeclaredDependency> dependencies) -
isAllowedDependency
public boolean isAllowedDependency(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClassis a valid dependency.- Parameters:
type- must not be null.- Returns:
-
isAllowedDependency
-
toString
-
equals
-
hashCode
public int hashCode()
-