Class SpringBean

java.lang.Object
org.springframework.modulith.core.SpringBean

public class SpringBean extends Object
A Spring bean type.
Author:
Oliver Drotbohm
  • Method Details

    • of

      static SpringBean of(com.tngtech.archunit.core.domain.JavaClass type, ApplicationModule module)
      Creates a new SpringBean for the given JavaClass and ApplicationModule.
      Parameters:
      type - must not be null.
      module - must not be null.
    • getType

      public com.tngtech.archunit.core.domain.JavaClass getType()
      Returns the JavaClass of the SpringBean.
      Returns:
      will never be null.
    • getFullyQualifiedTypeName

      public String 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 a public API interface.
      Returns:
    • getInterfacesWithinModule

      public List<com.tngtech.archunit.core.domain.JavaClass> getInterfacesWithinModule()
      Returns all interfaces implemented by the bean that are part of the same application module.
      Returns:
      will never be null.
    • toArchitecturallyEvidentType

      public ArchitecturallyEvidentType toArchitecturallyEvidentType()
      Creates a new ArchitecturallyEvidentType from the current SpringBean.
      Returns:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object