private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
private void checkArrayAndAnnotationValuedMembers(EnhancedAnnotation<T> annotatedAnnotation) { for (EnhancedAnnotatedMethod<?, ?> annotatedMethod : annotatedAnnotation.getMembers()) { if ((Reflections.isArrayType(annotatedMethod.getJavaClass()) || Annotation.class.isAssignableFrom(annotatedMethod.getJavaClass())) && !getNonBindingMembers().contains(annotatedMethod.slim())) { throw MetadataLogger.LOG.nonBindingMemberTypeException(annotatedMethod); } } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }
public boolean isEqual(Annotation instance, Annotation other, boolean includeNonBindingTypes) { if (instance.annotationType().equals(getRawType()) && other.annotationType().equals(getRawType())) { for (AnnotatedMethod<?> annotatedMethod : getAnnotatedAnnotation().getMethods()) { if (includeNonBindingTypes || !getNonBindingMembers().contains(annotatedMethod)) { try { AccessController.doPrivileged(SetAccessibleAction.of(annotatedMethod.getJavaMember())); Object thisValue = annotatedMethod.getJavaMember().invoke(instance); Object thatValue = annotatedMethod.getJavaMember().invoke(other); if (!thisValue.equals(thatValue)) { return false; } } catch (IllegalArgumentException e) { throw new WeldException(e); } catch (IllegalAccessException e) { throw new WeldException(e); } catch (InvocationTargetException e) { throw new WeldException(e); } } } return true; } return false; } }