de.novanic.eventservice.config.level
Class ConfigLevelFactory

java.lang.Object
  extended by de.novanic.eventservice.config.level.ConfigLevelFactory

public final class ConfigLevelFactory
extends java.lang.Object

ConfigurationLoader instances can be registered at a ConfigLevel. There are five pre-defined configuration levels (LOWEST, LOW, DEFAULT, HIGH and HIGHEST). Finer levels can be defined with a custom configuration level with createConfigLevel(int). The loading process starts with the ConfigurationLoaders which are registered at the lower levels and check the availability. When the loader or rather the source is available the loader is used to load the EventServiceConfiguration. Otherwise the next loader in the configuration level queue is checked. The ConfigLevelFactory is used by the EventServiceConfigurationFactory and there are some pre-registered ConfigurationLoader instances. See EventServiceConfigurationFactory for more information.

Author:
sstrohschein
Date: 20.03.2009
Time: 19:44:33

Field Summary
static ConfigLevel DEFAULT
          DEFAULT level = 5000 - 7499
static ConfigLevel HIGH
          HIGH level = 7500 - 9999
static ConfigLevel HIGHEST
          HIGHEST level = >= 10000
static ConfigLevel LOW
          LOW level = 2500 - 4999
static ConfigLevel LOWEST
          LOWEST level = 1 - 2499
 
Method Summary
static ConfigLevel createConfigLevel(int aLevelIdent)
          Creates a custom configuration level for finer steps than the pre-defined configuration levels (LOWEST, LOW, DEFAULT, HIGH, HIGHEST).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOWEST

public static final ConfigLevel LOWEST
LOWEST level = 1 - 2499


LOW

public static final ConfigLevel LOW
LOW level = 2500 - 4999


DEFAULT

public static final ConfigLevel DEFAULT
DEFAULT level = 5000 - 7499


HIGH

public static final ConfigLevel HIGH
HIGH level = 7500 - 9999


HIGHEST

public static final ConfigLevel HIGHEST
HIGHEST level = >= 10000

Method Detail

createConfigLevel

public static ConfigLevel createConfigLevel(int aLevelIdent)
Creates a custom configuration level for finer steps than the pre-defined configuration levels (LOWEST, LOW, DEFAULT, HIGH, HIGHEST).

Parameters:
aLevelIdent - queue number of the level (configuration loading is started from the lesser level)
Returns:
created ConfigLevel