|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drupal.project.computing.DConfig
public class DConfig
This is the config class to help initialize DSite and DApplication. Note that there's no file that maps to it. This is purely internal.
Nested Class Summary | |
---|---|
static class |
DConfig.UnitTest
|
Field Summary | |
---|---|
protected java.util.logging.Logger |
logger
|
protected java.util.Properties |
properties
This is the main place we save configurations. |
Constructor Summary | |
---|---|
DConfig()
|
|
DConfig(java.util.Properties properties)
Default constructor that construct the config object. |
Method Summary | |
---|---|
java.lang.String |
getDbPrefix()
Deprecated. |
java.util.Properties |
getDbProperties()
Returns the database configuration to initialize Drupal database configuration. |
java.io.File |
getDrupalRoot()
Find the Drupal root. |
java.lang.String |
getDrushExec()
Get the "drush" executable from either -Ddrupal.drush, or DRUSH_EXEC string. |
int |
getMaxBatchSize()
Deprecated. |
java.lang.String |
getPhpExec()
Get the PHP executable from either -Ddrupal.php, or PHP_EXEC system variable. |
java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
|
java.io.File |
locateFile(java.lang.String fileName)
Try to find a file in this order: 1. |
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.logging.Logger logger
protected java.util.Properties properties
Constructor Detail |
---|
public DConfig()
public DConfig(java.util.Properties properties)
properties
- Method Detail |
---|
public java.lang.String getProperty(java.lang.String propertyName, java.lang.String defaultValue)
public void setProperty(java.lang.String propertyName, java.lang.String value)
public java.util.Properties getDbProperties() throws DConfigException
DConfigException
public java.io.File locateFile(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
- File name to look for.
java.io.FileNotFoundException
@Deprecated public java.lang.String getDbPrefix()
@Deprecated public int getMaxBatchSize()
public java.lang.String getDrushExec()
public java.lang.String getPhpExec()
public java.io.File getDrupalRoot() throws DConfigException
DConfigException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |