Class EntryPoints.EntryPoint

java.lang.Object
org.springframework.modulith.core.EntryPoints.EntryPoint
Enclosing class:
EntryPoints

class EntryPoints.EntryPoint extends Object
A method or constructor that forms an entry point into the ApplicationModule that this EntryPoints instance was created for, i.e. code that can trigger module behavior from the outside, either because it's part of the module's exposed, public API, or because some framework infrastructure invokes it directly.
Since:
2.2
Author:
Oliver Drotbohm
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    (package private) com.tngtech.archunit.core.domain.JavaCodeUnit
    Returns the method or constructor that forms the entry point.
    (package private) com.tngtech.archunit.core.domain.JavaClass
    Returns the type the entry point is declared on.
    int
     
    (package private) boolean
    matches(com.tngtech.archunit.core.domain.JavaMethod candidate)
    Returns whether this EntryPoints.EntryPoint's method is a module interface method overridden by the given candidate, i.e. whether this EntryPoints.EntryPoint is a suitable, preferred stand-in for it.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getType

      com.tngtech.archunit.core.domain.JavaClass getType()
      Returns the type the entry point is declared on.
      Returns:
      will never be null.
    • getMethod

      com.tngtech.archunit.core.domain.JavaCodeUnit getMethod()
      Returns the method or constructor that forms the entry point.
      Returns:
      will never be null.
    • matches

      boolean matches(com.tngtech.archunit.core.domain.JavaMethod candidate)
      Returns whether this EntryPoints.EntryPoint's method is a module interface method overridden by the given candidate, i.e. whether this EntryPoints.EntryPoint is a suitable, preferred stand-in for it.
      Parameters:
      candidate - must not be null.
      See Also:
      • EntryPoints.interfaceMethodsOverriddenBy(JavaMethod)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object