Nuxeo Enterprise Platform 5.4

org.nuxeo.common
Class Environment

java.lang.Object
  extended by org.nuxeo.common.Environment

public class Environment
extends java.lang.Object

Author:
Bogdan Stefanescu

Field Summary
static java.lang.String BUNDLES
           
static java.lang.String BUNDLES_DIR
          The application layout (optional): directory containing nuxeo runtime osgi bundles.
static java.lang.String CONFIG_DIR
          Deprecated. never defined
static java.lang.String DATA_DIR
          Deprecated. never defined
static java.lang.String HOME_DIR
          Deprecated. never defined
static java.lang.String JBOSS_HOST
          Constants that identifies possible hosts for the framework.
static java.lang.String LOG_DIR
          Deprecated. never defined
static java.lang.String NUXEO_CONFIG_DIR
           
static java.lang.String NUXEO_DATA_DIR
           
static java.lang.String NUXEO_HOME_DIR
           
static java.lang.String NUXEO_LOG_DIR
           
static java.lang.String NUXEO_TMP_DIR
           
static java.lang.String NUXEO_WEB_DIR
           
static java.lang.String NXSERVER_HOST
           
static java.lang.String TOMCAT_HOST
           
static java.lang.String WEB_DIR
          Deprecated. never defined
 
Constructor Summary
Environment(java.io.File home)
           
Environment(java.io.File home, java.util.Properties properties)
           
 
Method Summary
 java.lang.String[] getCommandLineArguments()
           
 java.io.File getConfig()
           
 java.io.File getData()
           
static Environment getDefault()
           
 java.io.File getHome()
           
 java.lang.String getHostApplicationName()
           
 java.lang.String getHostApplicationVersion()
           
 java.io.File getLog()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 java.io.File getTemp()
           
 java.io.File getWeb()
           
 boolean isApplicationServer()
           
 boolean isJBoss()
           
 boolean isJetty()
           
 boolean isTomcat()
           
 void loadProperties(java.util.Properties properties)
           
 void setCommandLineArguments(java.lang.String[] args)
           
 void setConfig(java.io.File config)
           
 void setData(java.io.File data)
           
static void setDefault(Environment env)
           
 void setHostApplicationName(java.lang.String name)
           
 void setHostApplicationVersion(java.lang.String version)
           
 void setIsApplicationServer(boolean isAppServer)
           
 void setLog(java.io.File log)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void setTemp(java.io.File temp)
           
 void setWeb(java.io.File web)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBOSS_HOST

public static final java.lang.String JBOSS_HOST
Constants that identifies possible hosts for the framework.

See Also:
Constant Field Values

NXSERVER_HOST

public static final java.lang.String NXSERVER_HOST
See Also:
Constant Field Values

TOMCAT_HOST

public static final java.lang.String TOMCAT_HOST
See Also:
Constant Field Values

NUXEO_HOME_DIR

public static final java.lang.String NUXEO_HOME_DIR
See Also:
Constant Field Values

NUXEO_DATA_DIR

public static final java.lang.String NUXEO_DATA_DIR
See Also:
Constant Field Values

NUXEO_LOG_DIR

public static final java.lang.String NUXEO_LOG_DIR
See Also:
Constant Field Values

NUXEO_TMP_DIR

public static final java.lang.String NUXEO_TMP_DIR
See Also:
Constant Field Values

NUXEO_CONFIG_DIR

public static final java.lang.String NUXEO_CONFIG_DIR
See Also:
Constant Field Values

NUXEO_WEB_DIR

public static final java.lang.String NUXEO_WEB_DIR
See Also:
Constant Field Values

HOME_DIR

@Deprecated
public static final java.lang.String HOME_DIR
Deprecated. never defined
The home directory.

See Also:
Constant Field Values

WEB_DIR

@Deprecated
public static final java.lang.String WEB_DIR
Deprecated. never defined
The web root.

See Also:
Constant Field Values

CONFIG_DIR

@Deprecated
public static final java.lang.String CONFIG_DIR
Deprecated. never defined
The config directory.

See Also:
Constant Field Values

DATA_DIR

@Deprecated
public static final java.lang.String DATA_DIR
Deprecated. never defined
The data directory.

See Also:
Constant Field Values

LOG_DIR

@Deprecated
public static final java.lang.String LOG_DIR
Deprecated. never defined
The log directory.

See Also:
Constant Field Values

BUNDLES_DIR

public static final java.lang.String BUNDLES_DIR
The application layout (optional): directory containing nuxeo runtime osgi bundles.

See Also:
Constant Field Values

BUNDLES

public static final java.lang.String BUNDLES
See Also:
Constant Field Values
Constructor Detail

Environment

public Environment(java.io.File home)

Environment

public Environment(java.io.File home,
                   java.util.Properties properties)
Method Detail

setDefault

public static void setDefault(Environment env)

getDefault

public static Environment getDefault()

getHome

public java.io.File getHome()

isApplicationServer

public boolean isApplicationServer()

setIsApplicationServer

public void setIsApplicationServer(boolean isAppServer)

getHostApplicationName

public java.lang.String getHostApplicationName()

getHostApplicationVersion

public java.lang.String getHostApplicationVersion()

setHostApplicationName

public void setHostApplicationName(java.lang.String name)

setHostApplicationVersion

public void setHostApplicationVersion(java.lang.String version)

getTemp

public java.io.File getTemp()

setTemp

public void setTemp(java.io.File temp)

getConfig

public java.io.File getConfig()

setConfig

public void setConfig(java.io.File config)

getLog

public java.io.File getLog()

setLog

public void setLog(java.io.File log)

getData

public java.io.File getData()

setData

public void setData(java.io.File data)

getWeb

public java.io.File getWeb()

setWeb

public void setWeb(java.io.File web)

getCommandLineArguments

public java.lang.String[] getCommandLineArguments()

setCommandLineArguments

public void setCommandLineArguments(java.lang.String[] args)

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

getProperties

public java.util.Properties getProperties()

loadProperties

public void loadProperties(java.util.Properties properties)

isJBoss

public boolean isJBoss()

isJetty

public boolean isJetty()

isTomcat

public boolean isTomcat()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.