@SuppressWarnings("unchecked")
@Override
public ValueInjector createParameterExtractor(Class injectTargetClass,
AccessibleObject injectTarget, Class type, Type genericType, Annotation[] annotations)
{
final Qualifier qualifier = FindAnnotation.findAnnotation(annotations, Qualifier.class);
if (qualifier == null)
{
return super.createParameterExtractor(injectTargetClass, injectTarget, type,
genericType, annotations);
}
else
{
return new ValueInjector()
{
public Object inject(HttpRequest request, HttpResponse response)
{
return beanFactory.getBean(qualifier.value());
}
public Object inject()
{
// do nothing.