/** * 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); }
aliasName = service_alias.substring(i + 1); if (propertyAliasTable != null) { propertyAliasTable.remove(key(serviceName, aliasName)); algorithm = k.substring(j + 1); if (propertyServiceTable != null) { Provider.Service ser = propertyServiceTable.remove(key(serviceName, algorithm)); if (ser != null && propertyAliasTable != null && ser.aliases != null) { for (String alias : ser.aliases) { propertyAliasTable.remove(key(serviceName, alias)); algorithm = k.substring(j + 1, i); if (propertyServiceTable != null) { Object o = propertyServiceTable.get(key(serviceName, algorithm)); if (o != null) { s = (Provider.Service) o;
String key = key(type, algorithm); Object o = null; if (serviceTable != null) {
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
aliasName = service_alias.substring(i + 1); algorithm = value; String propertyServiceTableKey = key(serviceName, algorithm); Object o = null; if (propertyServiceTable == null) { propertyAliasTable = new LinkedHashMap<String, Service>(256); propertyAliasTable.put(key(serviceName, aliasName), s); } else { String className = (String) changedProperties propertyAliasTable = new LinkedHashMap<String, Service>(256); propertyAliasTable.put(key(serviceName, aliasName), s); serviceName = key.substring(0, j); algorithm = key.substring(j + 1); String propertyServiceTableKey = key(serviceName, algorithm); Object o = null; if (propertyServiceTable != null) { algorithm = key.substring(j + 1, i); String attribute = key.substring(i + 1); String propertyServiceTableKey = key(serviceName, algorithm); Object o = null; if (propertyServiceTable != null) {
/** * 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); }
String key = key(type, algorithm); Object o = null; if (serviceTable != null) {
String key = key(type, algorithm); Object o = null; if (serviceTable != null) {
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
String key = key(type, algorithm); Object o = null; if (serviceTable != null) {
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }
/** * Adds a {@code Service} to this {@code Provider}. If a service with the * same name was registered via this method, it is replace. * * @param s * the {@code Service} to register */ protected synchronized void putService(Provider.Service s) { if (s == null) { throw new NullPointerException("s == null"); } if ("Provider".equals(s.getType())) { // Provider service type cannot be added return; } servicesChanged(); if (serviceTable == null) { serviceTable = new LinkedHashMap<String, Service>(128); } serviceTable.put(key(s.type, s.algorithm), s); if (s.aliases != null) { if (aliasTable == null) { aliasTable = new LinkedHashMap<String, Service>(256); } for (String alias : s.getAliases()) { aliasTable.put(key(s.type, alias), s); } } serviceInfoToProperties(s); }