org.marketcetera.util.spring
Class SystemPropertiesSetter

java.lang.Object
  extended by org.marketcetera.util.spring.SystemPropertiesSetter

public class SystemPropertiesSetter
extends Object

Sets system properties from a map. Its intended usage is to enable setting of system properties from a Spring configuration file.

Since:
0.5.0
Version:
$Id: SystemPropertiesSetter.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
SystemPropertiesSetter()
           
 
Method Summary
 void setMap(Map<String,String> map)
          For each entry in the given map, a system property is set wherein the key of each entry is the property name, and the entry value is the property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertiesSetter

public SystemPropertiesSetter()
Method Detail

setMap

public void setMap(Map<String,String> map)
For each entry in the given map, a system property is set wherein the key of each entry is the property name, and the entry value is the property value. System properties whose names are not present as entry keys are not affected. A null entry value removes the associated system property.

Parameters:
map - The map.


Copyright © 2012. All Rights Reserved.