Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.slide.util
Class Configuration  view Configuration download Configuration.java

java.lang.Object
  extended byorg.apache.slide.util.Configuration

public abstract class Configuration
extends java.lang.Object

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.

Version:
$Revision: 1.19 $ $Date: 2004/07/28 09:34:29 $

Nested Class Summary
static class Configuration.Property
          Names of properties used in the configuration file.
 
Field Summary
private static boolean _binding
          True if bind is enabled.
private static boolean _debug
          True if the default configuration specified debugging.
private static java.util.Properties _default
          The default properties loaded from the configuration file.
private static boolean _events
          True if events should be fired
private static boolean _locking
          True if integrated locking is used.
private static boolean _principalIdentifiedLocks
          Principal identified locks.
private static boolean _search
          True if search is enabled.
private static boolean _security
          True if integrated security checks are performed.
private static java.lang.String _urlEncoding
          URL encoding.
private static boolean _versioncontrol
          True if version control is used.
 
Constructor Summary
Configuration()
           
 
Method Summary
static boolean debug()
          Returns true if the default configuration specified debugging.
static boolean fireEvents()
          Returns true if events are enabled by default
static java.util.Properties getDefault()
          Returns the default configuration file.
protected static void load()
          Called by getDefault() 55 to load the configuration the first time.
static java.lang.String urlEncoding()
          Returns the used URL encoding.
static boolean useBinding(org.apache.slide.store.Store store)
           
static boolean useGlobalBinding()
          TODO: dump? Returns true if binding is enabled.
static boolean useIntegratedLocking()
          Returns true if integrated lock checking is used.
static boolean useIntegratedSecurity()
          Returns true if integrated security checking is used.
static boolean usePrincipalIdentifiedLocks()
          Returns true if Principal identified locks are enabled.
static boolean useSearch()
          Returns true if search is enabled.
static boolean useVersionControl()
          Returns true if version control is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_default

private static java.util.Properties _default
The default properties loaded from the configuration file.


_debug

private static boolean _debug
True if the default configuration specified debugging.


_security

private static boolean _security
True if integrated security checks are performed.


_locking

private static boolean _locking
True if integrated locking is used.


_versioncontrol

private static boolean _versioncontrol
True if version control is used.


_search

private static boolean _search
True if search is enabled.


_binding

private static boolean _binding
True if bind is enabled.


_events

private static boolean _events
True if events should be fired


_urlEncoding

private static java.lang.String _urlEncoding
URL encoding.


_principalIdentifiedLocks

private static boolean _principalIdentifiedLocks
Principal identified locks.

Constructor Detail

Configuration

public Configuration()
Method Detail

debug

public static boolean debug()
Returns true if the default configuration specified debugging.


useIntegratedSecurity

public static boolean useIntegratedSecurity()
Returns true if integrated security checking is used.


useIntegratedLocking

public static boolean useIntegratedLocking()
Returns true if integrated lock checking is used.


useVersionControl

public static boolean useVersionControl()
Returns true if version control is used.


useSearch

public static boolean useSearch()
Returns true if search is enabled.


useBinding

public static boolean useBinding(org.apache.slide.store.Store store)

useGlobalBinding

public static boolean useGlobalBinding()
TODO: dump? Returns true if binding is enabled.


fireEvents

public static boolean fireEvents()
Returns true if events are enabled by default


urlEncoding

public static java.lang.String urlEncoding()
Returns the used URL encoding.


usePrincipalIdentifiedLocks

public static boolean usePrincipalIdentifiedLocks()
Returns true if Principal identified locks are enabled.


getDefault

public static java.util.Properties getDefault()
Returns the default configuration file. Changes to the returned properties set will affect all Castor functions relying on the default configuration.


load

protected static void load()
Called by getDefault() 55 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.