Class SpringBean
java.lang.Object
org.springframework.modulith.core.SpringBean
A Spring bean type.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.JavaClassgetType()Returns theJavaClassof theSpringBean.inthashCode()booleanReturns 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.booleanisAssignableTo(Class<?> type) Returns whether the bean is assignable to the given type.(package private) static SpringBeanof(com.tngtech.archunit.core.domain.JavaClass type, ApplicationModule module) Creates a newArchitecturallyEvidentTypefrom 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 theJavaClassof 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 newArchitecturallyEvidentTypefrom the currentSpringBean.- Returns:
-
isAssignableTo
Returns whether the bean is assignable to the given type.- Parameters:
type- must not be null.- Since:
- 1.4
-
equals
-
hashCode
public int hashCode()
-