for (AnnotatedType<?> annotatedType : annotatedTypes)
{
if (annotatedType.getAnnotation(Alternative.class) != null)
{
Priority priority = annotatedType.getAnnotation(Priority.class);
if (priority != null)
{
alternativesManager.addPriorityClazzAlternative(annotatedType.getJavaClass(), priority);
}
}
if (annotatedType.getAnnotation(javax.interceptor.Interceptor.class) != null)
{
Priority priority = annotatedType.getAnnotation(Priority.class);
if (priority != null)
{
final Class<?> javaClass = annotatedType.getJavaClass();
interceptorsManager.addPriorityClazzInterceptor(javaClass, priority);
interceptorsManager.addEnabledInterceptorClass(javaClass);
}
}
if (annotatedType.getAnnotation(javax.decorator.Decorator.class) != null)
{
Priority priority = annotatedType.getAnnotation(Priority.class);
if (priority != null)
{
final Class<?> javaClass = annotatedType.getJavaClass();
decoratorsManager.addPriorityClazzDecorator(javaClass, priority);
decoratorsManager.addEnabledDecorator(javaClass);