com.codemonster.surinam.core
Class GlobalPath
java.lang.Object
com.codemonster.surinam.core.GlobalPath
public class GlobalPath
- extends Object
This class provides global variables and flags that relate to the operating environment and
are accessed from multiple locations within the framework. Also, this is a simple way
to keep certain pieces of the framework portable; for example the logger is not final which would
allow you to access and initialize it if necessary to override the default.
Field Summary |
static String |
SURINAM_DEPLOYMENT_ROOT
We need a way for Action Documents (AD) to remain portable so we allow a root definition that gets
built into the parsing of each AD. |
Method Summary |
static boolean |
isRootDefined()
This is an accessor method that provides a simple check to see if the Surinam Deployment Root path
has been defined in the current environment. |
SURINAM_DEPLOYMENT_ROOT
public static String SURINAM_DEPLOYMENT_ROOT
- We need a way for Action Documents (AD) to remain portable so we allow a root definition that gets
built into the parsing of each AD. This mechanism allows ADs to contain relative paths based on the root
that is defined here, just how much of the path is kept in the environment and how much is in the AD path
is left to an individual's usage and preference. For Surinam project ADs, we keep all the service jars in
the same directory by convention so we only need to put the name of the jar in the AD and the full path
can be acquired from the environment. Note that the jar name in the AD allows for portable sub-directory
structures as your organizational scheme sees fit.
GlobalPath
public GlobalPath()
isRootDefined
public static final boolean isRootDefined()
- This is an accessor method that provides a simple check to see if the Surinam Deployment Root path
has been defined in the current environment.
Copyright © 2010. All Rights Reserved.