/** * Removes an advertised contract from the set of contracts advertised by this descriptor * @param removeMe The contract to remove. May not be null * @return true if removeMe was removed from the set */ public boolean removeContractType(Type removeMe) { try { wLock.lock(); if (removeMe == null) return false; boolean retVal = advertisedContracts.remove(removeMe); Class<?> rawClass = ReflectionHelper.getRawClass(removeMe); if (rawClass == null) return retVal; return removeAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Removes an advertised contract from the set of contracts advertised by this descriptor * @param removeMe The contract to remove. May not be null * @return true if removeMe was removed from the set */ public boolean removeContractType(Type removeMe) { try { wLock.lock(); if (removeMe == null) return false; boolean retVal = advertisedContracts.remove(removeMe); Class<?> rawClass = ReflectionHelper.getRawClass(removeMe); if (rawClass == null) return retVal; return removeAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Removes an advertised contract from the set of contracts advertised by this descriptor * @param removeMe The contract to remove. May not be null * @return true if removeMe was removed from the set */ public boolean removeContractType(Type removeMe) { try { wLock.lock(); if (removeMe == null) return false; boolean retVal = advertisedContracts.remove(removeMe); Class<?> rawClass = ReflectionHelper.getRawClass(removeMe); if (rawClass == null) return retVal; return removeAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }
/** * Removes an advertised contract from the set of contracts advertised by this descriptor * @param removeMe The contract to remove. May not be null * @return true if removeMe was removed from the set */ public boolean removeContractType(Type removeMe) { try { wLock.lock(); if (removeMe == null) return false; boolean retVal = advertisedContracts.remove(removeMe); Class<?> rawClass = ReflectionHelper.getRawClass(removeMe); if (rawClass == null) return retVal; return removeAdvertisedContract(rawClass.getName()); } finally { wLock.unlock(); } }