boolean encode = findAnnotation(annotations, Encoded.class) != null || injectTarget.isAnnotationPresent(Encoded.class) || type.isAnnotationPresent(Encoded.class);
String defaultVal = null;
if (defaultValue != null) defaultVal = defaultValue.value();
QueryParam query;
HeaderParam header;
MatrixParam matrix;
PathParam uriParam;
CookieParam cookie;
FormParam formParam;
Suspend suspend;
if ((query = findAnnotation(annotations, QueryParam.class)) != null)
{
return new QueryParamInjector(type, genericType, injectTarget, query.value(), defaultVal, encode, annotations, providerFactory);
}
else if ((header = findAnnotation(annotations, HeaderParam.class)) != null)
{
return new HeaderParamInjector(type, genericType, injectTarget, header.value(), defaultVal, annotations, providerFactory);
}
else if ((formParam = findAnnotation(annotations, FormParam.class)) != null)
{
return new FormParamInjector(type, genericType, injectTarget, formParam.value(), defaultVal, annotations, providerFactory);
}