com.ibm.mashups.enabler.services
Interface ConfigService


public ConfigService

The Config Service allows to access config variables as defined by the system. The service can be retrieved using the following code:
var configService = com.ibm.mashups.services.ServiceManager.getService(
    com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME);


Field Summary
 String SERVICE_NAME
           The service name to be used to fetch the service from the ServiceManager
 
Method Summary
 String getValue(String name)
           This method returns the value of the config variable as defined by the system
 ConfigObject getConfigObject(String name)
           This method returns the value of the config object for a config provider
 String[] getConfigProviderNames()
           This method returns the Config Provider names.
 

Field Detail

SERVICE_NAME

String SERVICE_NAME
The service name to be used to fetch the service from the ServiceManager

Method Detail

getValue

String getValue(String name)
This method returns the value of the config variable as defined by the system

Parameters:
name - the name of the config variable
Returns:
the value of the config variable. Maybe be NULL.

getConfigObject

ConfigObject getConfigObject(String name)
This method returns the value of the config object for a config provider

Parameters:
name - the name of the config provider
Returns:
the config provider. Maybe be NULL.

getConfigProviderNames

String[] getConfigProviderNames()
This method returns the Config Provider names. Each Config Provider will have a corresponding ConfigObject.

Returns:
the config provider names. Never NULL.


Copyright IBM Corp. 2010 All Rights Reserved.