Compiere 3.1

org.compiere.util
Class EnvLoader

java.lang.Object
  extended by org.compiere.util.EnvLoader

public class EnvLoader
extends Object

Environment Loader - loads system environment variables int System.properties

Version:
$Id: EnvLoader.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
EnvLoader()
           
 
Method Summary
static Properties getEnv(String prefix)
          Ger Environment variables
static boolean load(String prefix)
          Load System environment variables into System.properies Prints error messages on System.err
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvLoader

public EnvLoader()
Method Detail

load

public static boolean load(String prefix)
Load System environment variables into System.properies

Prints error messages on System.err

Parameters:
prefix - String to prefix variable names
Returns:
true if success

getEnv

public static Properties getEnv(String prefix)
Ger Environment variables

Parameters:
prefix - String to prefix variable names
Returns:
Properties with prefixed system environment variables or null if not successful

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.