|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.powertac.server.ServerPropertiesService
@Service public class ServerPropertiesService
Implementation of the ServerProperties and ServerConfiguration interfaces.
| Constructor Summary | |
|---|---|
ServerPropertiesService()
Default constructor |
|
| Method Summary | |
|---|---|
Collection<?> |
configureInstances(Class<?> target)
|
void |
configureMe(Object target)
|
Double |
getDoubleProperty(String name,
Double defaultValue)
|
Integer |
getIntegerProperty(String name,
Integer defaultValue)
|
String |
getProperty(String name)
|
String |
getProperty(String name,
String defaultValue)
|
Properties |
getPublishedConfiguration()
Returns the published configuration as a string |
void |
publishConfiguration(Object target)
|
void |
recycle()
Come here to re-configure from scratch. |
void |
setApplicationContext(org.springframework.context.ApplicationContext context)
|
void |
setProperty(String key,
Object value)
Changes the value of a property (or adds a property). |
void |
setUserConfig(URL userConfigURL)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerPropertiesService()
| Method Detail |
|---|
public void recycle()
public void setUserConfig(URL userConfigURL)
throws org.apache.commons.configuration.ConfigurationException,
IOException
org.apache.commons.configuration.ConfigurationException
IOExceptionpublic void configureMe(Object target)
configureMe in interface org.powertac.common.interfaces.ServerConfigurationpublic Collection<?> configureInstances(Class<?> target)
configureInstances in interface org.powertac.common.interfaces.ServerConfigurationpublic void publishConfiguration(Object target)
publishConfiguration in interface org.powertac.common.interfaces.ServerConfigurationpublic Properties getPublishedConfiguration()
public String getProperty(String name)
getProperty in interface org.powertac.common.interfaces.ServerProperties
public String getProperty(String name,
String defaultValue)
getProperty in interface org.powertac.common.interfaces.ServerProperties
public Integer getIntegerProperty(String name,
Integer defaultValue)
getIntegerProperty in interface org.powertac.common.interfaces.ServerProperties
public Double getDoubleProperty(String name,
Double defaultValue)
getDoubleProperty in interface org.powertac.common.interfaces.ServerProperties
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException
public void setProperty(String key,
Object value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||