if(field.isAnnotationPresent(Named.class))
{
throw new WebBeansConfigurationException("Resource producer field : " + field + " can not define EL name");
}
ResourceBean<T,Annotation> resourceBean = new ResourceBean(returnType,parent, resourceRef);
defineProducerMethodApiTypes(resourceBean, field.getGenericType() , field.getDeclaredAnnotations());
defineQualifiers(resourceBean, field.getDeclaredAnnotations());
resourceBean.setImplScopeType(new DependentScopeLiteral());
resourceBean.setProducerField(field);
return resourceBean;
}
}