/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * 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); }
/** * 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); }
servicesChanged(); changedProperties = null;
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * Clears all properties used to look up services implemented by this * {@code Provider}. */ @Override public synchronized void clear() { super.clear(); if (serviceTable != null) { serviceTable.clear(); } if (propertyServiceTable != null) { propertyServiceTable.clear(); } if (aliasTable != null) { aliasTable.clear(); } if (propertyAliasTable != null) { propertyAliasTable.clear(); } changedProperties = null; putProviderInfo(); if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } servicesChanged(); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }