public final class ConfigLevelFactory extends 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.Modifier and Type | Field and Description |
---|---|
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
|
public static final ConfigLevel LOWEST
public static final ConfigLevel LOW
public static final ConfigLevel DEFAULT
public static final ConfigLevel HIGH
public static final ConfigLevel HIGHEST
public static ConfigLevel createConfigLevel(int aLevelIdent)
LOWEST
,
LOW
, DEFAULT
,
HIGH
, HIGHEST
).aLevelIdent
- queue number of the level (configuration loading is started from the lesser level)ConfigLevel
Copyright © 2012. All Rights Reserved.