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) boolean
int
hashCode()
boolean
isAllowedDependency
(com.tngtech.archunit.core.domain.JavaClass type) Returns whether the givenJavaClass
is a valid dependency.(package private) boolean
isAllowedDependency
(Class<?> type) (package private) static boolean
open()
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 givenJavaClass
is a valid dependency.- Parameters:
type
- must not be null.- Returns:
-
isAllowedDependency
-
toString
-
equals
-
hashCode
public int hashCode()
-