org.powertac.server
Class ServerPropertiesService

java.lang.Object
  extended by org.powertac.server.ServerPropertiesService
All Implemented Interfaces:
org.powertac.common.interfaces.ServerProperties

@Service
public class ServerPropertiesService
extends Object
implements org.powertac.common.interfaces.ServerProperties

Implementation of the ServerProperties interface.

Author:
jcollins

Constructor Summary
ServerPropertiesService()
          Default constructor
 
Method Summary
 Double getDoubleProperty(String name, Double defaultValue)
           
 Integer getIntegerProperty(String name, Integer defaultValue)
           
 String getProperty(String name)
           
 String getProperty(String name, String defaultValue)
           
 void setUserConfig(String userConfigFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerPropertiesService

public ServerPropertiesService()
Default constructor

Method Detail

setUserConfig

public void setUserConfig(String userConfigFile)

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface org.powertac.common.interfaces.ServerProperties

getProperty

public String getProperty(String name,
                          String defaultValue)
Specified by:
getProperty in interface org.powertac.common.interfaces.ServerProperties

getIntegerProperty

public Integer getIntegerProperty(String name,
                                  Integer defaultValue)
Specified by:
getIntegerProperty in interface org.powertac.common.interfaces.ServerProperties

getDoubleProperty

public Double getDoubleProperty(String name,
                                Double defaultValue)
Specified by:
getDoubleProperty in interface org.powertac.common.interfaces.ServerProperties


Copyright © 2011 Power TAC. All Rights Reserved.