Class ContextAnnotationBinder<T>
java.lang.Object
io.micronaut.jaxrs.runtime.ext.bind.ContextAnnotationBinder<T>
- Type Parameters:
T- The type to bind
- All Implemented Interfaces:
AnnotatedArgumentBinder<Context,,T, HttpRequest<?>> ArgumentBinder<T,,HttpRequest<?>> AnnotatedRequestArgumentBinder<Context,,T> RequestArgumentBinder<T>
@Singleton
public class ContextAnnotationBinder<T>
extends Object
implements AnnotatedRequestArgumentBinder<Context,T>
Handles the JAX-RS
Context annotation binding.- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T extends Object> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextAnnotationBinder(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)
-
Constructor Details
-
ContextAnnotationBinder
@Inject protected ContextAnnotationBinder(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
-
getAnnotationType
- Specified by:
getAnnotationTypein interfaceAnnotatedArgumentBinder<Context,T, HttpRequest<?>>
-
bind
public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source) - Specified by:
bindin interfaceArgumentBinder<T,HttpRequest<?>>
-