/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }
/** * Removes a previously registered {@code Service} from this {@code * Provider}. * * @param s * the {@code Service} to remove * @throws NullPointerException * if {@code s} is {@code null} */ protected synchronized void removeService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } servicesChanged(); if (serviceTable != null) { serviceTable.remove(key(s.type, s.algorithm)); } if (aliasTable != null && s.aliases != null) { for (String alias: s.getAliases()) { aliasTable.remove(key(s.type, alias)); } } serviceInfoFromProperties(s); }