/** * Creates the constant descriptor * * @param theDom May not be null * @param advertisedContracts * @param scope * @param name * @param qualifiers */ public DomDescriptor(Dom theDom, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers) { super(advertisedContracts, scope, name, qualifiers, DescriptorType.CLASS, DescriptorVisibility.NORMAL, 0, null, null, null, null); super.addAdvertisedContract(ConfigBeanProxy.class.getName()); if (theDom == null) throw new IllegalArgumentException(); this.theDom = theDom; setImplementation(theDom.getClass().getName()); }
/** * Adds an advertised contract to the set of contracts advertised by this descriptor * @param addMe The contract to add. May not be null */ public void addContractType(Type addMe) { try { wLock.lock(); if (addMe == null) { return; } advertisedContracts.add(addMe); Class<?> rawClass = ReflectionHelper.getRawClass(addMe); if (rawClass == null) { return; } addAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Adds an advertised contract to the set of contracts advertised by this descriptor * @param addMe The contract to add. May not be null */ public void addContractType(Type addMe) { try { wLock.lock(); if (addMe == null) { return; } advertisedContracts.add(addMe); Class<?> rawClass = ReflectionHelper.getRawClass(addMe); if (rawClass == null) { return; } addAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Adds an advertised contract to the set of contracts advertised by this descriptor * @param addMe The contract to add. May not be null */ public void addContractType(Type addMe) { try { wLock.lock(); if (addMe == null) { return; } advertisedContracts.add(addMe); Class<?> rawClass = ReflectionHelper.getRawClass(addMe); if (rawClass == null) { return; } addAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Adds an advertised contract to the set of contracts advertised by this descriptor * @param addMe The contract to add. May not be null */ public void addContractType(Type addMe) { try { wLock.lock(); if (addMe == null) { return; } advertisedContracts.add(addMe); Class<?> rawClass = ReflectionHelper.getRawClass(addMe); if (rawClass == null) { return; } addAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Creates the constant descriptor * * @param theDom May not be null * @param advertisedContracts * @param scope * @param name * @param qualifiers */ public DomDescriptor(Dom theDom, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers) { super(advertisedContracts, scope, name, qualifiers, DescriptorType.CLASS, DescriptorVisibility.NORMAL, 0, null, null, null, null); super.addAdvertisedContract(ConfigBeanProxy.class.getName()); if (theDom == null) throw new IllegalArgumentException(); this.theDom = theDom; setImplementation(theDom.getClass().getName()); }
/** * Creates the constant descriptor * * @param theDom May not be null * @param advertisedContracts * @param scope * @param name * @param qualifiers */ public DomDescriptor(Dom theDom, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers) { super(advertisedContracts, scope, name, qualifiers, DescriptorType.CLASS, DescriptorVisibility.NORMAL, 0, null, null, null, null); super.addAdvertisedContract(ConfigBeanProxy.class.getName()); if (theDom == null) throw new IllegalArgumentException(); this.theDom = theDom; setImplementation(theDom.getClass().getName()); }
if (raw == null) continue; addAdvertisedContract(raw.getName());
if (raw == null) continue; addAdvertisedContract(raw.getName());
if (raw == null) continue; addAdvertisedContract(raw.getName());
if (raw == null) continue; addAdvertisedContract(raw.getName());