java.security.Provider.servicesChanged()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(11.4k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中java.security.Provider.servicesChanged()方法的一些代码示例,展示了Provider.servicesChanged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.servicesChanged()方法的具体详情如下:
包路径:java.security.Provider
类名称:Provider
方法名:servicesChanged

Provider.servicesChanged介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

/**
 * 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();
}

代码示例来源:origin: robovm/robovm

/**
 * 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);
}

代码示例来源:origin: robovm/robovm

/**
 * 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);
}

代码示例来源:origin: robovm/robovm

servicesChanged();
changedProperties = null;

代码示例来源:origin: MobiVM/robovm

/**
 * 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();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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();
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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();
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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);
}

代码示例来源:origin: MobiVM/robovm

/**
 * 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);
}

代码示例来源:origin: MobiVM/robovm

/**
 * 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);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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);
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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);
}

相关文章