com.atlassian.jira.config.properties
Class JiraSystemProperties

java.lang.Object
  extended by com.atlassian.jira.config.properties.JiraSystemProperties

public final class JiraSystemProperties
extends Object

This class provides access to system properties. It should be used to access properties that can't be accessed via ApplicationProperties yet because the world hasn't been brought up yet. These values are cached. If you need the latest value of the system property or have changed a system propertty and wish the changed value to be seen by this class you need to call resetReferences() Doing this is often is a potential performance problem Boolean.getBoolean(String a) is a blocking operation, so you should NOT do this for every SQL statement or Web request etc.

Since:
v4.0

Method Summary
static boolean isBundledPluginsDisabled()
           
static boolean isDecodeMailFileName()
           
static boolean isDecodeMailParameters()
           
static boolean isDevMode()
           
static boolean isI18nReloadBundles()
           
static boolean isSuperBatchingDisabled()
           
static boolean isWebSudoDisabled()
           
static boolean isXsrfDetectionCheckRequired()
           
static void resetReferences()
           
static boolean showPerformanceMonitor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isXsrfDetectionCheckRequired

public static boolean isXsrfDetectionCheckRequired()

isDevMode

public static boolean isDevMode()
Returns:
true if jira is running in dev mode (meaning jira.home lock files will be ignored)

isBundledPluginsDisabled

public static boolean isBundledPluginsDisabled()
Returns:
true if bundled plugins are disabled

isI18nReloadBundles

public static boolean isI18nReloadBundles()
Returns:
true if reloading i18n bundles is true

isDecodeMailParameters

public static boolean isDecodeMailParameters()
Returns:
return true if the system property has been set to decode e-mails parameters as specified by RFC-2231.

isDecodeMailFileName

public static boolean isDecodeMailFileName()
Returns:
return true if the system property has been set to decode the "filename" from an e-mail.

isSuperBatchingDisabled

public static boolean isSuperBatchingDisabled()

isWebSudoDisabled

public static boolean isWebSudoDisabled()

showPerformanceMonitor

public static boolean showPerformanceMonitor()

resetReferences

public static void resetReferences()


Copyright © 2002-2012 Atlassian. All Rights Reserved.