|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.cms.rc.RCEnvironment
public class RCEnvironment
Helper class that holds the revision controller configuration
| Field Summary | |
|---|---|
static java.lang.String |
BACKUP_DIRECTORY
BACKUP_DIRECTORY The backup directory |
static java.lang.String |
CONFIGURATION_FILE
CONFIGURATION_FILE The configuration file |
static java.lang.String |
RCML_DIRECTORY
RCML_DIRECTORY The RCML directory |
| Constructor Summary | |
|---|---|
RCEnvironment(java.lang.String contextPath,
org.apache.avalon.framework.logger.Logger logger)
Creates a new RCEnvironment object from the context path |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
java.lang.String |
getBackupDirectory()
Get the backup directory |
static RCEnvironment |
getInstance(java.lang.String contextPath,
org.apache.avalon.framework.logger.Logger logger)
Returns the singleton RC environment for this context path. |
java.lang.String |
getRCMLDirectory()
Get the RCML directory |
protected void |
setBackupDirectory(java.lang.String backupDir)
Set the backup directory |
protected void |
setRCMLDirectory(java.lang.String rcmlDir)
Set the rcml directory |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONFIGURATION_FILE
CONFIGURATION_FILE The configuration file
public static final java.lang.String RCML_DIRECTORY
RCML_DIRECTORY The RCML directory
public static final java.lang.String BACKUP_DIRECTORY
BACKUP_DIRECTORY The backup directory
| Constructor Detail |
|---|
public RCEnvironment(java.lang.String contextPath,
org.apache.avalon.framework.logger.Logger logger)
contextPath - The context pathlogger - The logger.| Method Detail |
|---|
public static RCEnvironment getInstance(java.lang.String contextPath,
org.apache.avalon.framework.logger.Logger logger)
contextPath - The context path (the Lenya webapp directory).logger - The logger.
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)public java.lang.String getRCMLDirectory()
protected void setRCMLDirectory(java.lang.String rcmlDir)
rcmlDir - the path to the rcml directorypublic java.lang.String getBackupDirectory()
protected void setBackupDirectory(java.lang.String backupDir)
backupDir - path to the backup directory
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||