public interface IServiceProvider extends IServiceProviderDescriptor
IService
Modifier and Type | Method and Description |
---|---|
IServiceProviderWorkingCopy |
copy() |
boolean |
getBoolean(String key,
boolean defaultValue)
Returns the boolean value of the given key.
|
String |
getConfigurationString()
Deprecated.
|
IServiceProviderDescriptor |
getDescriptor()
Get the descriptor for this service provider
|
int |
getInt(String key,
int defaultValue)
Returns the int value of the given key.
|
Map<String,String> |
getProperties()
Returns an unmodifiable view of the properties that apply
to this service provider.
|
String |
getString(String key,
String defaultValue)
Returns the string value of the given key.
|
boolean |
isConfigured()
Test if this service provider has been configured.
|
Set<String> |
keySet()
Deprecated.
use
getProperties().keySet() instead. |
void |
putBoolean(String key,
boolean value)
Sets the value of the given key to the given boolean
|
void |
putInt(String key,
int value)
Sets the value of the given key to the given int
|
void |
putString(String key,
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(Map<String,String> map)
Add the properties in the supplied map to the properties
of the service provider.
|
getId, getName, getPriority, getServiceId
IServiceProviderWorkingCopy copy()
boolean getBoolean(String key, boolean defaultValue)
key
- the keydefaultValue
- The value to return if key not storedString getConfigurationString()
IServiceProviderDescriptor getDescriptor()
int getInt(String key, int defaultValue)
key
- the keydefaultValue
- The value to return if key not storedMap<String,String> getProperties()
String getString(String key, String defaultValue)
key
- the keydefaultValue
- The value to return if key not storedboolean isConfigured()
Set<String> keySet()
getProperties().keySet()
instead.void putBoolean(String key, boolean value)
key
- the keyvalue
- the valuevoid putInt(String key, int value)
key
- the keyvalue
- the valuevoid putString(String key, String value)
key
- the keyvalue
- the valuevoid setDescriptor(IServiceProviderDescriptor descriptor)
descriptor
- descriptor to setCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.