WebBeansContext webBeansContext)
{
TypeVariable<?>[] args = method.getTypeParameters();
if(args.length > 0)
{
throw new WebBeansConfigurationException("Initializer methods must not be generic but method : " + method.getName() + " in bean class : "
+ clazz + " is defined as generic");
}
Annotation[][] anns = method.getParameterAnnotations();
Type[] type = method.getGenericParameterTypes();
for (int i = 0; i < anns.length; i++)
{
Annotation[] a = anns[i];
Type t = type[i];
webBeansContext.getAnnotationManager().checkForNewQualifierForDeployment(t, clazz, method.getName(), a);
}
if (method.getAnnotation(Produces.class) == null)
{
WebBeansUtil.checkInjectedMethodParameterConditions(method, clazz);
}
else
{
throw new WebBeansConfigurationException("Initializer method : " + method.getName() + " in class : " + clazz.getName()
+ " can not be annotated with @Produces");
}
}