Schnittstelle ControllerMethodReference<ControllerT>

Typparameter:
ControllerT - the type of the controller that contains the method being referenced
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public interface ControllerMethodReference<ControllerT>
Functional interface for method references to a controller method in the context of URI generation. This interface enables type-safe referencing of specific methods within a controller when constructing links with SpringControllerLinkBuilder.

It facilitates the SpringControllerLinkBuilder.linkTo(Class, ControllerMethodReference) method in accepting controller method references, which allows dynamic construction of URIs based on the actual method signatures and runtime values of their parameters.

  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.reactivestreams.Publisher<?>
    invoke(ControllerT controller)
    Method to invoke