Class ControllerMethodReturnTypeAotProcessor

java.lang.Object
org.springframework.hateoas.aot.ControllerMethodReturnTypeAotProcessor
All Implemented Interfaces:
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor

public class ControllerMethodReturnTypeAotProcessor extends Object implements org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
A BeanRegistrationAotProcessor that contributes proxy types for return types of controller methods so that can be pointed to by DummyInvocationUtils, i.e. creating links via fake method invocations.
Since:
2.0
Author:
Christoph Strobl, Oliver Drotbohm
  • Constructor Details

    • ControllerMethodReturnTypeAotProcessor

      public ControllerMethodReturnTypeAotProcessor()
      Creates a new ControllerMethodReturnTypeAotProcessor looking for classes annotated with Controller.
    • ControllerMethodReturnTypeAotProcessor

      protected ControllerMethodReturnTypeAotProcessor(Class<? extends Annotation> controllerAnnotationType)
      Creates a new ControllerMethodReturnTypeAotProcessor looking for classes equipped with the given annotation.
      Parameters:
      controllerAnnotationType - must not be null.
  • Method Details

    • processAheadOfTime

      public @Nullable org.springframework.beans.factory.aot.BeanRegistrationAotContribution processAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean)
      Specified by:
      processAheadOfTime in interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor