Package org.springframework.hateoas.aot
Class ControllerMethodReturnTypeAotProcessor
java.lang.Object
org.springframework.hateoas.aot.ControllerMethodReturnTypeAotProcessor
- All Implemented Interfaces:
BeanRegistrationAotProcessor
public class ControllerMethodReturnTypeAotProcessor
extends Object
implements 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 Summary
ModifierConstructorDescriptionCreates a newControllerMethodReturnTypeAotProcessor
looking for classes annotated withController
.protected
ControllerMethodReturnTypeAotProcessor
(Class<? extends Annotation> controllerAnnotationType) Creates a newControllerMethodReturnTypeAotProcessor
looking for classes equipped with the given annotation. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
isBeanExcludedFromAotProcessing
-
Constructor Details
-
ControllerMethodReturnTypeAotProcessor
public ControllerMethodReturnTypeAotProcessor()Creates a newControllerMethodReturnTypeAotProcessor
looking for classes annotated withController
. -
ControllerMethodReturnTypeAotProcessor
protected ControllerMethodReturnTypeAotProcessor(Class<? extends Annotation> controllerAnnotationType) Creates a newControllerMethodReturnTypeAotProcessor
looking for classes equipped with the given annotation.- Parameters:
controllerAnnotationType
- must not be null.
-
-
Method Details
-
processAheadOfTime
- Specified by:
processAheadOfTime
in interfaceBeanRegistrationAotProcessor
-