|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.util.Configuration
Provides default configuration for Slide components from the slide.properties configuration file. All slide features rely on the central configuration file.
The configuration file is loaded from the Java lib directory, the classpath and the Castor JAR. Properties set in the classpath file takes precedence over properties set in the Java library configuration file and properties set in the Slide JAR, allowing for each customization. All three files are named slide.properties.
For example, to change the domain init file in use, create a new configuration file in the current directory, instead of modifying the global one.
Inner Class Summary | |
static class |
Configuration.Property
Names of properties used in the configuration file. |
Constructor Summary | |
Configuration()
|
Method Summary | |
(package private) static void |
|
static boolean |
debug()
Returns true if the default configuration specified debugging. |
static java.util.Properties |
getDefault()
Returns the default configuration file. |
protected static void |
load()
Called by getDefault() to load the configuration the
first time. |
static boolean |
useIntegratedLocking()
Returns true if integrated lock checking is used. |
static boolean |
useIntegratedSecurity()
Returns true if integrated security checking is used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Configuration()
Method Detail |
public static boolean debug()
public static boolean useIntegratedSecurity()
public static boolean useIntegratedLocking()
static void()
public static java.util.Properties getDefault()
protected static void load()
getDefault()
to load the configuration the
first time. Will not complain about inability to load
configuration file from one of the default directories, but if
it cannot find the JAR's configuration file, will throw a
run time exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |