Package org.springframework.hateoas.aot
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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
IGNORE_REGISTRATION_ATTRIBUTE -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a newControllerMethodReturnTypeAotProcessorlooking for classes annotated withController.protectedControllerMethodReturnTypeAotProcessor(Class<? extends Annotation> controllerAnnotationType) Creates a newControllerMethodReturnTypeAotProcessorlooking for classes equipped with the given annotation. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.beans.factory.aot.BeanRegistrationAotContributionprocessAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
isBeanExcludedFromAotProcessing
-
Constructor Details
-
ControllerMethodReturnTypeAotProcessor
public ControllerMethodReturnTypeAotProcessor()Creates a newControllerMethodReturnTypeAotProcessorlooking for classes annotated withController. -
ControllerMethodReturnTypeAotProcessor
protected ControllerMethodReturnTypeAotProcessor(Class<? extends Annotation> controllerAnnotationType) Creates a newControllerMethodReturnTypeAotProcessorlooking 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:
processAheadOfTimein interfaceorg.springframework.beans.factory.aot.BeanRegistrationAotProcessor
-