ConfigValue

public class ConfigValue extends Object

Placeholder object for Configuration values.

Obtain an instance of ConfigValue by using Configuration as a static factory. Before retrieving the configured value, execute initConfig(String[]). To retrieve a configuration value once it's initialized, use get().

Public Method Summary

T
get()
Gets the configured value.
T
getDefault()
Get default value for configuration.
boolean
isInitialized()
Checks whether the value has been initialized.

Inherited Method Summary

Public Methods

public T get ()

Gets the configured value.

This can only be called after initConfig(Properties) initialization has occurred.

Returns
  • configured value
Throws
IllegalStateException if not initialized.

public T getDefault ()

Get default value for configuration.

Returns
  • default value for configuration.

public boolean isInitialized ()

Checks whether the value has been initialized.

Returns
  • true if value is initialized