@Singleton public class DefaultRequestBinderRegistry extends java.lang.Object implements RequestBinderRegistry
RequestBinderRegistry interface.| Constructor and Description | 
|---|
| DefaultRequestBinderRegistry(ConversionService conversionService,
                            java.util.List<RequestArgumentBinder> binders) | 
| DefaultRequestBinderRegistry(ConversionService conversionService,
                            RequestArgumentBinder... binders) | 
| Modifier and Type | Method and Description | 
|---|---|
| <T,ST> void | addRequestArgumentBinder(ArgumentBinder<T,ST> binder)Adds a request argument binder to the registry. | 
| <T> java.util.Optional<ArgumentBinder<T,HttpRequest<?>>> | findArgumentBinder(Argument<T> argument,
                  HttpRequest<?> source)Locate an  ArgumentBinderfor the given argument and source type. | 
| protected <T> RequestArgumentBinder | findBinder(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(ConversionService<?> conversionService)Registers a default converter. | 
public DefaultRequestBinderRegistry(ConversionService conversionService, RequestArgumentBinder... binders)
conversionService - The conversion servicebinders - The request argument binders@Inject public DefaultRequestBinderRegistry(ConversionService conversionService, java.util.List<RequestArgumentBinder> binders)
conversionService - The conversion servicebinders - The request argument binderspublic <T,ST> void addRequestArgumentBinder(ArgumentBinder<T,ST> binder)
ArgumentBinderRegistryaddRequestArgumentBinder in interface ArgumentBinderRegistry<HttpRequest<?>>T - The argument typeST - The source typebinder - The binderpublic <T> java.util.Optional<ArgumentBinder<T,HttpRequest<?>>> findArgumentBinder(Argument<T> argument, HttpRequest<?> source)
ArgumentBinderRegistryArgumentBinder for the given argument and source type.findArgumentBinder in interface ArgumentBinderRegistry<HttpRequest<?>>T - The argument typeargument - The argumentsource - The sourceOptional of ArgumentBinderprotected <T> RequestArgumentBinder findBinder(Argument<T> argument, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
T - The typeargument - The argumentannotationType - The class for annotationprotected void registerDefaultConverters(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