Package io.micronaut.jaxrs.servlet
Class ServletContextAnnotationBinder<T>
java.lang.Object
io.micronaut.jaxrs.runtime.ext.bind.ContextAnnotationBinder<T>
io.micronaut.jaxrs.servlet.ServletContextAnnotationBinder<T>
- Type Parameters:
T- The generic type.
- All Implemented Interfaces:
AnnotatedArgumentBinder<Context,,T, HttpRequest<?>> ArgumentBinder<T,,HttpRequest<?>> AnnotatedRequestArgumentBinder<Context,,T> RequestArgumentBinder<T>
@Singleton
@Replaces(ContextAnnotationBinder.class)
public class ServletContextAnnotationBinder<T>
extends ContextAnnotationBinder<T>
Extends and replaces the context annotation binder to support servlet types.
- Since:
- 4.6.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T extends Object> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServletContextAnnotationBinder(BeanContext beanContext, Collection<TypedRequestArgumentBinder<?>> argumentBinders) Constructor to create a Context binder using all passed in argument binders. -
Method Summary
Modifier and TypeMethodDescriptionbind(ArgumentConversionContext<T> context, HttpRequest<?> source) Methods inherited from class io.micronaut.jaxrs.runtime.ext.bind.ContextAnnotationBinder
getAnnotationTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.bind.binders.RequestArgumentBinder
createSpecific
-
Constructor Details
-
ServletContextAnnotationBinder
protected ServletContextAnnotationBinder(BeanContext beanContext, Collection<TypedRequestArgumentBinder<?>> argumentBinders) Constructor to create a Context binder using all passed in argument binders.- Parameters:
beanContext- The bean contextargumentBinders- The argument binders- Since:
- 3.3.0
-
-
Method Details
-
bind
public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source) - Specified by:
bindin interfaceArgumentBinder<T,HttpRequest<?>> - Overrides:
bindin classContextAnnotationBinder<T>
-