本文整理了Java中java.security.Provider.removeFromPropertyServiceTable()
方法的一些代码示例,展示了Provider.removeFromPropertyServiceTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.removeFromPropertyServiceTable()
方法的具体详情如下:
包路径:java.security.Provider
类名称:Provider
方法名:removeFromPropertyServiceTable
暂无
代码示例来源:origin: robovm/robovm
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: robovm/robovm
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: robovm/robovm
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
代码示例来源:origin: ibinti/bugvm
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: ibinti/bugvm
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: MobiVM/robovm
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: com.bugvm/bugvm-rt
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
代码示例来源:origin: MobiVM/robovm
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: FlexoVM/flexovm
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
代码示例来源:origin: com.gluonhq/robovm-rt
private void myPutAll(Map<?,?> t) {
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator();
Object key;
Object value;
while (it.hasNext()) {
Map.Entry<?, ?> entry = it.next();
key = entry.getKey();
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
continue;
}
value = entry.getValue();
super.put(key, value);
if (changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
changedProperties.put(key, value);
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Removes the specified {@code key} and its associated value from this
* {@code Provider}.
*
* @param key
* the name of the property
* @return the value that was mapped to the specified {@code key} ,or
* {@code null} if no mapping was present
*/
@Override
public synchronized Object remove(Object key) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
if (changedProperties.size() == 0) {
changedProperties = null;
}
}
return super.remove(key);
}
代码示例来源:origin: MobiVM/robovm
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
代码示例来源:origin: ibinti/bugvm
/**
* Maps the specified {@code key} property name to the specified {@code
* value}.
*
* @param key
* the name of the property.
* @param value
* the value of the property.
* @return the value that was previously mapped to the specified {@code key}
* ,or {@code null} if it did not have one.
*/
@Override
public synchronized Object put(Object key, Object value) {
if (key instanceof String && ((String) key).startsWith("Provider.")) {
// Provider service type is reserved
return null;
}
if (providerNumber != -1) {
// if registered then refresh Services
Services.setNeedRefresh();
}
if (changedProperties != null && changedProperties.remove(key) == null) {
removeFromPropertyServiceTable(key);
}
if (changedProperties == null) {
changedProperties = new LinkedHashMap<Object, Object>();
}
changedProperties.put(key, value);
return super.put(key, value);
}
内容来源于网络,如有侵权,请联系作者删除!