public class ConfigLoader extends Object implements ConfigParameters
Configuration
. In order for loaded settings
be available for application's lifecycle they must be saved via
registerConfiguration()
.Modifier and Type | Field and Description |
---|---|
static String |
PARAM_SEPARATOR
Separator character used to connect multiple words that make up a single
property key.
|
AUTH_LOGINID_PLUGIN, AUTH_PASS_PLUGIN, AUTH_PROMPT, AUTH_REQUIRED, AUTOLOAD_IMAGE_FILEPATH, BUSINESS_NAME_LONG, BUSINESS_NAME_SHORT, DEFAULT_AUTH_PROMPT, HELP_PAGE_URL, HOST, IMAGE_EXPORT_PLUGIN, LOOK_AND_FEEL, NUMBER_OF_PIC_OUTPUTS, PIC_OUTPUT_FORMAT, PIC_POST_PROCESS_URL, PIC_PREFIX, PIC_RADIO_LABEL, PIC_RATIO_PRESERVED, PIC_SELECTOR_FACTOR, PIC_SELECTOR_VISIBLE, PIC_TARGET_HEIGHT, PIC_TARGET_SHAPE, PIC_TARGET_WIDTH, RADIOGROUP_OUTPUTTYPE_LABEL, RULER_TOGGLE_ONOFF_VISIBLE, RULER_VISIBLE, WELCOME_RESOURCE_PATH, WELCOME_URL, WINDOW_HEIGHT, WINDOW_TITLE, WINDOW_WIDTH
Constructor and Description |
---|
ConfigLoader(Properties config)
Creates an instance of loader for parsing and saving configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
initializeParameters()
Initializes application parameters while performing full validation.
|
void |
registerConfiguration()
Saves loaded configuration with
ConfigManager . |
void |
setAppletContext(AppletContext context)
Deprecated.
with no replacement; applet deployment is no longer
recommended. Use Java Web Start instead
|
public static final String PARAM_SEPARATOR
public ConfigLoader(Properties config)
config
- properties representing configuration this loader should
parse and loadpublic void setAppletContext(AppletContext context)
context
- public void registerConfiguration()
ConfigManager
. After
this call, Configuration
can be retrieved from the manager
for the remainder of application's lifecycle from anywhere in the class
hierarchy.public boolean initializeParameters()
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.