public interface IServiceProvider extends IServiceProviderDescriptor, org.eclipse.core.runtime.IAdaptable
IService| Modifier and Type | Method and Description |
|---|---|
IServiceProviderWorkingCopy |
copy() |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Returns the boolean value of the given key.
|
java.lang.String |
getConfigurationString()
Deprecated.
|
IServiceProviderDescriptor |
getDescriptor()
Get the descriptor for this service provider
|
int |
getInt(java.lang.String key,
int defaultValue)
Returns the int value of the given key.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns an unmodifiable view of the properties that apply
to this service provider.
|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Returns the string value of the given key.
|
boolean |
isConfigured()
Test if this service provider has been configured.
|
java.util.Set<java.lang.String> |
keySet()
Deprecated.
use
getProperties().keySet() instead. |
void |
putBoolean(java.lang.String key,
boolean value)
Sets the value of the given key to the given boolean
|
void |
putInt(java.lang.String key,
int value)
Sets the value of the given key to the given int
|
void |
putString(java.lang.String key,
java.lang.String value)
Sets the value of the given key to the given string
|
void |
setDescriptor(IServiceProviderDescriptor descriptor)
Set the descriptor for this provider.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Add the properties in the supplied map to the properties
of the service provider.
|
getId, getName, getPriority, getServiceIdIServiceProviderWorkingCopy copy()
boolean getBoolean(java.lang.String key,
boolean defaultValue)
key - the keydefaultValue - The value to return if key not storedjava.lang.String getConfigurationString()
IServiceProviderDescriptor getDescriptor()
int getInt(java.lang.String key,
int defaultValue)
key - the keydefaultValue - The value to return if key not storedjava.util.Map<java.lang.String,java.lang.String> getProperties()
java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - the keydefaultValue - The value to return if key not storedboolean isConfigured()
java.util.Set<java.lang.String> keySet()
getProperties().keySet() instead.void putBoolean(java.lang.String key,
boolean value)
key - the keyvalue - the valuevoid putInt(java.lang.String key,
int value)
key - the keyvalue - the valuevoid putString(java.lang.String key,
java.lang.String value)
key - the keyvalue - the valuevoid setDescriptor(IServiceProviderDescriptor descriptor)
descriptor - descriptor to setvoid setProperties(java.util.Map<java.lang.String,java.lang.String> map)
map - map containing the properties to be added.Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.