@Singleton public class DefaultRequestBinderRegistry extends java.lang.Object implements RequestBinderRegistry
RequestBinderRegistry interface.| Constructor and Description |
|---|
DefaultRequestBinderRegistry(io.micronaut.core.convert.ConversionService conversionService,
java.util.List<RequestArgumentBinder> binders) |
DefaultRequestBinderRegistry(io.micronaut.core.convert.ConversionService conversionService,
RequestArgumentBinder... binders) |
| Modifier and Type | Method and Description |
|---|---|
<T,ST> void |
addRequestArgumentBinder(io.micronaut.core.bind.ArgumentBinder<T,ST> binder) |
<T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
HttpRequest<?> source) |
protected <T> RequestArgumentBinder |
findBinder(io.micronaut.core.type.Argument<T> argument,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
protected void |
registerDefaultAnnotationBinders(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,RequestArgumentBinder> byAnnotation) |
protected void |
registerDefaultConverters(io.micronaut.core.convert.ConversionService<?> conversionService)
Registers a default converter.
|
public DefaultRequestBinderRegistry(io.micronaut.core.convert.ConversionService conversionService,
RequestArgumentBinder... binders)
conversionService - The conversion servicebinders - The request argument binders@Inject
public DefaultRequestBinderRegistry(io.micronaut.core.convert.ConversionService conversionService,
java.util.List<RequestArgumentBinder> binders)
conversionService - The conversion servicebinders - The request argument binderspublic <T,ST> void addRequestArgumentBinder(io.micronaut.core.bind.ArgumentBinder<T,ST> binder)
addRequestArgumentBinder in interface io.micronaut.core.bind.ArgumentBinderRegistry<HttpRequest<?>>public <T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument, HttpRequest<?> source)
findArgumentBinder in interface io.micronaut.core.bind.ArgumentBinderRegistry<HttpRequest<?>>protected <T> RequestArgumentBinder findBinder(io.micronaut.core.type.Argument<T> argument, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
T - The typeargument - The argumentannotationType - The class for annotationprotected void registerDefaultConverters(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService - The conversion serviceprotected void registerDefaultAnnotationBinders(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,RequestArgumentBinder> byAnnotation)
byAnnotation - The request argument binder