com.sap.mdm.examples
Class Settings

java.lang.Object
  extended bycom.sap.mdm.examples.Settings

public class Settings
extends Object

Creates default settings for the API examples and optionally reads user specific values from an InputStream.


Constructor Summary
Settings()
          The default constructor initializes the settings from the default properties and creates values for those settings for which only at runtime sensible default values are known.
 
Method Summary
static void main(String[] args)
          Simple main method for testing purposes.
 void readSettings(InputStream in)
          Optionally reads user specific settings from an InputStream.
 String toString()
          Return settings in human-readable format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Settings

public Settings()
The default constructor initializes the settings from the default properties and creates values for those settings for which only at runtime sensible default values are known. dbServer - with the name of the local machine locale - with the locale of the OS user running this code

Method Detail

readSettings

public void readSettings(InputStream in)
                  throws RuntimeException
Optionally reads user specific settings from an InputStream.

Parameters:
in - InputStream to read the properties from
Throws:
RuntimeException - in case Properties.load() throws an error

toString

public String toString()
Return settings in human-readable format.

See Also:
Object.toString()

main

public static void main(String[] args)
Simple main method for testing purposes.

Parameters:
args - are not supported


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.