|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.BuildTimeConfig org.jikesrvm.mm.mmtk.BuildTimeConfig
public class BuildTimeConfig
Read build-time configuration information for MMTk from a Java properties file. Properties read through this mechanism should be read at build time and saved in static final fields.
This is a wrapper for a java.util.Properties object.
Field Summary | |
---|---|
private Properties |
props
The underlying properties object |
Constructor Summary | |
---|---|
BuildTimeConfig(String property_file_property)
|
|
BuildTimeConfig(String property_file_property,
String default_property_file)
|
Method Summary | |
---|---|
boolean |
getBooleanProperty(String name)
Return a property of type boolean |
boolean |
getBooleanProperty(String name,
boolean dflt)
Return a property of type boolean, with default. |
int |
getIntProperty(String name)
Return a property of type int |
int |
getIntProperty(String name,
int dflt)
Return a property of type String, with default. |
String |
getPlanName()
|
private Properties |
getProperties(String property_file_property,
String default_property_file)
|
String |
getStringProperty(String name)
Return a property of type String |
String |
getStringProperty(String name,
String dflt)
Return a property of type String, with default. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Properties props
Constructor Detail |
---|
public BuildTimeConfig(String property_file_property, String default_property_file)
public BuildTimeConfig(String property_file_property)
Method Detail |
---|
private Properties getProperties(String property_file_property, String default_property_file)
property_file_property
- The name of the property that sets
the location of the properties filedefault_property_file
- The default properties file.public String getPlanName()
getPlanName
in class BuildTimeConfig
public boolean getBooleanProperty(String name, boolean dflt)
BuildTimeConfig
getBooleanProperty
in class BuildTimeConfig
name
- The name of the propertydflt
- Default value
public boolean getBooleanProperty(String name)
BuildTimeConfig
getBooleanProperty
in class BuildTimeConfig
name
- The name of the property
public int getIntProperty(String name, int dflt)
BuildTimeConfig
getIntProperty
in class BuildTimeConfig
name
- The name of the propertydflt
- Default value
public int getIntProperty(String name)
BuildTimeConfig
getIntProperty
in class BuildTimeConfig
name
- The name of the property
public String getStringProperty(String name, String dflt)
BuildTimeConfig
getStringProperty
in class BuildTimeConfig
name
- The name of the propertydflt
- Default value
public String getStringProperty(String name)
BuildTimeConfig
getStringProperty
in class BuildTimeConfig
name
- The name of the property
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |