org.pentaho.platform.api.engine
Interface IConfiguredPojo

All Known Subinterfaces:
IConfiguredPojo

public interface IConfiguredPojo

The interface for a POJO component that wants access to system settings. This is an optional interface.

Author:
jamesdixon

Method Summary
 boolean configure(Map<String,String> props)
          Sets the configuration settings that were requested via a call to getConfigSettingsPaths().
 Set<String> getConfigSettingsPaths()
          Returns a list of Strings that define system settings that a POJO component would like read for it.
 

Method Detail

getConfigSettingsPaths

Set<String> getConfigSettingsPaths()
Returns a list of Strings that define system settings that a POJO component would like read for it. The strings are expected to be in the format of : folder/file{setting path} e.g. "smtp-email/email_config.xml{email-smtp/properties/mail.smtp.host}"

Returns:
List of configuration settings paths

configure

boolean configure(Map<String,String> props)
Sets the configuration settings that were requested via a call to getConfigSettingsPaths(). The keys of the map will be the Strings that were returned by the call to getConfigSettingsPaths. e.g. "smtp-email/email_config.xml{email-smtp/properties/mail.smtp.host}" -> "myhost.com"

Parameters:
props -
Returns: