Method[] methods = decoratorClazz.getDeclaredMethods();
for(Method method : methods)
{
if(AnnotationUtil.hasMethodAnnotation(method, Produces.class))
{
throw new WebBeansConfigurationException("Decorator class : " + decoratorClazz + " can not have producer methods but it has one with name : " + method.getName());
}
if(AnnotationUtil.hasMethodParameterAnnotation(method, Observes.class))
{
throw new WebBeansConfigurationException("Decorator class : " + decoratorClazz + " can not have observer methods but it has one with name : " + method.getName());
}
}
Set<Type> decoratorSet = new HashSet<Type>();
ClassUtil.setInterfaceTypeHierarchy(decoratorSet, decoratorClazz);