pt.digitalis.dif.startup
Class DIFStartupConfiguration

java.lang.Object
  extended by pt.digitalis.dif.startup.DIFStartupConfiguration

public class DIFStartupConfiguration
extends Object

This class represents the basic startup configuration DIF needs. In this phase it can't rely on several features/resources since they have not yet been started Note: There is no support for changes in this configuration in runtime. Only by updating the configuration file and then restarting the DIF will this be reflected. This is a design decision since these parameters define several resources that are mandatory for the startup of the DIF itself and set the ground for all its infrastructure, like, for instance the IoC controller.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Oct 2, 2007

Field Summary
static String CONFIGURATION_FILE
          The file name of the properties file that contains the startup parameters.
 
Constructor Summary
DIFStartupConfiguration()
           
 
Method Summary
static Boolean getDemoMode()
          Inspector for the 'demoMode' attribute.
static Boolean getDeveloperMode()
          Inspector for the 'developerMode' attribute.
static pt.digitalis.utils.ioc.IoCImplementations getIoCImplementation()
           
static pt.digitalis.log.LogLevel getLogLevel()
           
static MessagesLocation getMessagesLocation()
           
static pt.digitalis.utils.ioc.ModuleParser getModuleParser()
           
static Boolean getTestingMode()
          Inspector for the 'testingMode' attribute.
static Boolean isPrintStackTrace()
          Inspector for the 'printStackTrace' attribute.
static boolean isProductionMode()
           
static void setDemoMode(Boolean demoMode)
          Modifier for the 'demoMode' attribute.
static void setDeveloperMode(Boolean developerMode)
          Modifier for the 'developerMode' attribute.
static void setLogLevel(pt.digitalis.log.LogLevel logLevel)
          Modifier for the 'logLevel' attribute.
static void setTestingMode(Boolean testingMode)
          Modifier for the 'testingMode' attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_FILE

public static final String CONFIGURATION_FILE
The file name of the properties file that contains the startup parameters. Note: It's called dif2 for the eventuality of the existence of dif 1.x instances in the same App. Server. this way they will not collide.

See Also:
Constant Field Values
Constructor Detail

DIFStartupConfiguration

public DIFStartupConfiguration()
Method Detail

getDemoMode

public static Boolean getDemoMode()
Inspector for the 'demoMode' attribute.

Returns:
the demoMode value

getDeveloperMode

public static Boolean getDeveloperMode()
Inspector for the 'developerMode' attribute.

Returns:
the developerMode value

getIoCImplementation

public static pt.digitalis.utils.ioc.IoCImplementations getIoCImplementation()
Returns:
the iocImplementation

getLogLevel

public static pt.digitalis.log.LogLevel getLogLevel()
Returns:
the logLevel

getMessagesLocation

public static MessagesLocation getMessagesLocation()
Returns:
the messagesLocation

getModuleParser

public static pt.digitalis.utils.ioc.ModuleParser getModuleParser()
Returns:
the moduleParser

getTestingMode

public static Boolean getTestingMode()
Inspector for the 'testingMode' attribute.

Returns:
the testingMode value

isPrintStackTrace

public static Boolean isPrintStackTrace()
Inspector for the 'printStackTrace' attribute.

Returns:
the printStackTrace attribute value

isProductionMode

public static boolean isProductionMode()
Returns:
T is the instance is in production mode. Production mode is the default mode when none of the other modes are active (development, testing or demo)

setDemoMode

public static void setDemoMode(Boolean demoMode)
Modifier for the 'demoMode' attribute.

Parameters:
demoMode - the new demoMode value to set

setDeveloperMode

public static void setDeveloperMode(Boolean developerMode)
Modifier for the 'developerMode' attribute.

Parameters:
developerMode - the new developerMode value to set

setLogLevel

public static void setLogLevel(pt.digitalis.log.LogLevel logLevel)
Modifier for the 'logLevel' attribute.

Parameters:
logLevel - the new logLevel value to set

setTestingMode

public static void setTestingMode(Boolean testingMode)
Modifier for the 'testingMode' attribute.

Parameters:
testingMode - the new testingMode value to set


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.