Class ParamConverters.OptionalCustomProvider
java.lang.Object
org.glassfish.jersey.internal.inject.ParamConverters.OptionalCustomProvider
- All Implemented Interfaces:
ParamConverterProvider
- Enclosing class:
- ParamConverters
@Singleton
public static class ParamConverters.OptionalCustomProvider
extends Object
implements ParamConverterProvider
Provider of
param converter
that produce the Optional instance
by invoking ParamConverterProvider
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> ParamConverter<T>
getConverter
(Class<T> rawType, Type genericType, Annotation[] annotations) protected <T> T
-
Field Details
-
canReturnNull
protected final boolean canReturnNull
-
-
Constructor Details
-
OptionalCustomProvider
-
-
Method Details
-
getConverter
public <T> ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations) - Specified by:
getConverter
in interfaceParamConverterProvider
-
nullOrThrow
protected <T> T nullOrThrow()
-