org.springsource.loaded
Class GlobalConfiguration

java.lang.Object
  extended by org.springsource.loaded.GlobalConfiguration

public class GlobalConfiguration
extends java.lang.Object

Encapsulates configurable elements - these are set (to values other than the defaults) in TypeRegistry when the system property springloaded configuration is processed. Some of the options are only used by testcases to make the testcases easier to write and more straightforward.

Since:
0.5.0

Field Summary
static boolean assertsMode
          asserts mode will trigger extra checking (performance impact but confirms correctness)
static java.lang.String cacheDir
          The base directory in which to create any cache (.slcache folder).
static boolean callsideRewritingOn
           
static boolean catchersOn
           
static java.util.List<java.lang.String> classesToDump
          List of slashed classnames for types we should 'dump' during processing (for debugging purposes).
static boolean cleanCache
          Allows a cache to be cleaned up as the agent starts (effectively starting with a new cache, if 'caching' is true)
static boolean debugplugins
           
static boolean directlyDefineTypes
           
static java.lang.String dumpFolder
          When classes are dumped by Utils.dump() this specifies where.
static boolean explainMode
          Can be turned on to enable users to determine the decision process around why something is not reloadable.
static boolean fieldRewriting
          Are references to fields being modified - covering both the GETS/SETS and the reflective references.
static boolean fileSystemMonitoring
          If active, SpringLoaded will be trying to watch for types changing on the file system once they have been made reloadable.
static java.util.Properties globalConfigurationProperties
          Global configuration properties set based on the value of system property 'springloaded'.
static boolean interceptReflection
           
static boolean isCaching
          Determine whether on disk caching will be used.
static boolean isProfiling
          Global control for checking assertions
static boolean isRuntimeLogging
          Global control for runtime logging
static boolean logging
          Global control for loadtime logging
static boolean logNonInterceptedReflectiveCalls
           
static int maxClassDefinitions
           
static java.util.List<java.lang.String> pluginClassnameList
          List of dotted classnames representing classnames of plugins that should be loaded.
static java.lang.String profile
          A well known profile (e.g.
static boolean reloadMessages
           
static boolean verboseMode
          verbose mode can trigger extra messages.
static boolean verifyReloads
          When a reload is attempted, if this is true it will be checked to confirm it is allowed and does not violate the supported reloadable changes that can be made to a type.
 
Constructor Summary
GlobalConfiguration()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldRewriting

public static final boolean fieldRewriting
Are references to fields being modified - covering both the GETS/SETS and the reflective references.

See Also:
Constant Field Values

catchersOn

public static boolean catchersOn

fileSystemMonitoring

public static boolean fileSystemMonitoring
If active, SpringLoaded will be trying to watch for types changing on the file system once they have been made reloadable.


logging

public static boolean logging
Global control for loadtime logging


verboseMode

public static boolean verboseMode
verbose mode can trigger extra messages. Enable with 'verbose=true'


assertsMode

public static boolean assertsMode
asserts mode will trigger extra checking (performance impact but confirms correctness)


explainMode

public static boolean explainMode
Can be turned on to enable users to determine the decision process around why something is not reloadable.


isRuntimeLogging

public static boolean isRuntimeLogging
Global control for runtime logging


callsideRewritingOn

public static boolean callsideRewritingOn

cleanCache

public static boolean cleanCache
Allows a cache to be cleaned up as the agent starts (effectively starting with a new cache, if 'caching' is true)


isCaching

public static boolean isCaching
Determine whether on disk caching will be used.


profile

public static java.lang.String profile
A well known profile (e.g. grails) can tweak a lot of the default options in a particular way.


cacheDir

public static java.lang.String cacheDir
The base directory in which to create any cache (.slcache folder). If null then user.home will be used.


logNonInterceptedReflectiveCalls

public static final boolean logNonInterceptedReflectiveCalls
See Also:
Constant Field Values

isProfiling

public static final boolean isProfiling
Global control for checking assertions

See Also:
Constant Field Values

directlyDefineTypes

public static boolean directlyDefineTypes

interceptReflection

public static final boolean interceptReflection
See Also:
Constant Field Values

reloadMessages

public static boolean reloadMessages

verifyReloads

public static boolean verifyReloads
When a reload is attempted, if this is true it will be checked to confirm it is allowed and does not violate the supported reloadable changes that can be made to a type.


dumpFolder

public static java.lang.String dumpFolder
When classes are dumped by Utils.dump() this specifies where. A null value will cause us to dump into the default temp folder.


globalConfigurationProperties

public static java.util.Properties globalConfigurationProperties
Global configuration properties set based on the value of system property 'springloaded'. If null then not yet initialized (and a call to initializeFromSystemProperty()) is needed. If settings are truely once per VM, they are set directly in GlobalConfiguration whereas if they may be overridden on a per classloader level, they are set in this properties object and may be overridden by the springloaded.properties files accessible through each classloader.


classesToDump

public static java.util.List<java.lang.String> classesToDump
List of slashed classnames for types we should 'dump' during processing (for debugging purposes).


maxClassDefinitions

public static int maxClassDefinitions

pluginClassnameList

public static java.util.List<java.lang.String> pluginClassnameList
List of dotted classnames representing classnames of plugins that should be loaded.


debugplugins

public static final boolean debugplugins
Constructor Detail

GlobalConfiguration

public GlobalConfiguration()