Class EntryPoints

java.lang.Object
org.springframework.modulith.core.EntryPoints
All Implemented Interfaces:
Iterable<EntryPoints.EntryPoint>

class EntryPoints extends Object implements Iterable<EntryPoints.EntryPoint>
All EntryPoints.EntryPoints of an ApplicationModule, i.e. methods or constructors that can trigger module behavior from the outside.

There are two, independent ways for a method to qualify:

  • It's publicly accessible and declared on a type exposed by the module, i.e. reachable via a regular Java method call from other modules.
  • It's invoked directly by framework infrastructure — an HTTP handler method, an application event listener, or a message listener — regardless of whether its declaring type is exposed, as those are triggered independently of the module's named interfaces.
This is a first, deliberately simple cut. It is expected to evolve, e.g. to cover further messaging technologies or scheduled methods.
Since:
2.2
Author:
Oliver Drotbohm