@Override public boolean matches(Descriptor d) { if (d.getQualifiers().contains(InjectionTarget.class.getName())) { List<String> list = d.getMetadata().get("target"); if (list != null && list.get(0).equals(targetName)) { return true; } } return false; } }
@Override public Set<String> getQualifiers() { return baseDescriptor.getQualifiers(); }
@Override public Set<String> getQualifiers() { return baseDescriptor.getQualifiers(); }
@Override public Set<String> getQualifiers() { return baseDescriptor.getQualifiers(); }
@Override public Set<String> getQualifiers() { return baseDescriptor.getQualifiers(); }
@Override public boolean matches(Descriptor d) { return d.getQualifiers().containsAll(allQualifiers); }
@Override public boolean matches(Descriptor d) { return d.getQualifiers().containsAll(allQualifiers); }
@Override public boolean matches(Descriptor d) { return d.getQualifiers().containsAll(allQualifiers); }
@Override public boolean matches(Descriptor d) { if (qualifiers.isEmpty()) return true; return d.getQualifiers().containsAll(qualifiers); }
@Override public boolean matches(Descriptor d) { return d.getQualifiers().containsAll(allQualifiers); }
@Override public boolean matches(Descriptor d) { if (qualifiers.isEmpty()) return true; return d.getQualifiers().containsAll(qualifiers); }
@Override public boolean matches(Descriptor d) { if (qualifiers.isEmpty()) return true; return d.getQualifiers().containsAll(qualifiers); }
@Override public boolean matches(Descriptor d) { if (qualifiers.isEmpty()) return true; return d.getQualifiers().containsAll(qualifiers); }
@Override public boolean matches(Descriptor d) { if (unqualified == null) return true; Class<? extends Annotation> unqualifiedAnnos[] = unqualified.value(); if (unqualifiedAnnos.length <= 0) { return (d.getQualifiers().isEmpty()); } Set<String> notAllowed = new HashSet<String>(); for (Class<? extends Annotation> notMe : unqualifiedAnnos) { notAllowed.add(notMe.getName()); } for (String qualifier : d.getQualifiers()) { if (notAllowed.contains(qualifier)) return false; } return true; }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
@Override public boolean matches(Descriptor d) { if (d.getQualifiers().contains(InjectionTarget.class.getName())) { List<String> list = d.getMetadata().get("target"); if (list != null && list.get(0).equals(targetName)) { return true; } } return false; } }
public boolean equals(Object a) { if (a == null) return false; if (!(a instanceof Descriptor)) return false; Descriptor d = (Descriptor) a; if (!GeneralUtilities.safeEquals(implementation, d.getImplementation())) return false; if (!equalOrderedCollection((contracts == null) ? EMPTY_CONTRACTS_SET : contracts, d.getAdvertisedContracts())) return false; if (!GeneralUtilities.safeEquals(name, d.getName())) return false; if (!GeneralUtilities.safeEquals(scope, d.getScope())) return false; if (!equalOrderedCollection((qualifiers == null) ? EMPTY_QUALIFIER_SET : qualifiers, d.getQualifiers())) return false; if (!GeneralUtilities.safeEquals(descriptorType, d.getDescriptorType())) return false; if (!GeneralUtilities.safeEquals(descriptorVisibility, d.getDescriptorVisibility())) return false; if (!equalMetadata((metadatas == null) ? EMPTY_METADATAS_MAP : metadatas, d.getMetadata())) return false; if (!GeneralUtilities.safeEquals(proxiable, d.isProxiable())) return false; if (!GeneralUtilities.safeEquals(proxyForSameScope, d.isProxyForSameScope())) return false; if (!GeneralUtilities.safeEquals(analysisName, d.getClassAnalysisName())) return false; return true; }