@Singleton public static class ParamConverters.TypeFromStringEnum extends ParamConverters.TypeFromString
param converter
that produce the target Java enum
type instance
by invoking a static fromString(String)
method on the target enum type.Constructor and Description |
---|
TypeFromStringEnum() |
Modifier and Type | Method and Description |
---|---|
<T> javax.ws.rs.ext.ParamConverter<T> |
getConverter(java.lang.Class<T> rawType,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations) |
public <T> javax.ws.rs.ext.ParamConverter<T> getConverter(java.lang.Class<T> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
getConverter
in interface javax.ws.rs.ext.ParamConverterProvider
getConverter
in class ParamConverters.TypeFromString