if (superClassList.contains(superClass))
{
// since CDI 1.1 we have to wrap this in a DeploymentException
InconsistentSpecializationException exception
= new InconsistentSpecializationException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0005) + superClass.getName());
throw new WebBeansDeploymentException(exception);
}
superClassList.add(superClass);
specialClassList.add(specialClass);
}
}
webBeansContext.getWebBeansUtil().configureSpecializations(specialClassList);
}
//configure specialized producer beans.
webBeansContext.getWebBeansUtil().configureProducerMethodSpecializations();
}
catch (DefinitionException e)
{
throw e;
}
catch (DeploymentException e)
{
throw e;
}
catch (Exception e)
{
throw new WebBeansDeploymentException(e);
}
logger.fine("Checking Specialization constraints has ended.");
}