Class SpringBean
java.lang.Object
org.springframework.modulith.core.SpringBean
A Spring bean type.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the fully-qualified name of the Spring bean type.List<com.tngtech.archunit.core.domain.JavaClass>
Returns all interfaces implemented by the bean that are part of the same application module.com.tngtech.archunit.core.domain.JavaClass
getType()
Returns theJavaClass
of theSpringBean
.int
hashCode()
boolean
Returns whether the bean is considered to be an API bean, which means it is either a public type exposed in an API package of the module or implements an exposed API interface.(package private) static SpringBean
of
(com.tngtech.archunit.core.domain.JavaClass type, ApplicationModule module) Creates a newArchitecturallyEvidentType
from the currentSpringBean
.
-
Method Details
-
of
- Parameters:
type
- must not be null.module
- must not be null.
-
getType
public com.tngtech.archunit.core.domain.JavaClass getType()Returns theJavaClass
of theSpringBean
.- Returns:
- will never be null.
-
getFullyQualifiedTypeName
Returns the fully-qualified name of the Spring bean type.- Returns:
- will never be null or empty.
-
isApiBean
public boolean isApiBean()Returns whether the bean is considered to be an API bean, which means it is either a public type exposed in an API package of the module or implements an exposed API interface. -
getInterfacesWithinModule
Returns all interfaces implemented by the bean that are part of the same application module.- Returns:
- will never be null.
-
toArchitecturallyEvidentType
Creates a newArchitecturallyEvidentType
from the currentSpringBean
.- Returns:
-
equals
-
hashCode
public int hashCode()
-