public final class Options
extends java.lang.Object
Also used by installers to access options
(see WithOptions).
IMPORTANT: In contrast to OptionsInfo (which must be used for reporting only), this bean must be used
for real option value usage. Only this bean will correctly return default value for option not used before
(no set no gets).
for more info| Constructor and Description |
|---|
Options(OptionsSupport optionsSupport) |
| Modifier and Type | Method and Description |
|---|---|
<V,T extends java.lang.Enum & Option> |
get(T option)
Read option value.
|
public Options(OptionsSupport optionsSupport)
public <V,T extends java.lang.Enum & Option> V get(T option)
GuiceBundle.Builder.option(Enum, Object).
If value wasn't set there then default value will be returned. Null may return only if it was default value
and no new value were assigned.
Option access is tracked as option usage
(see OptionsInfo for options info).
V - option value typeT - helper type to define optionoption - option enumfor more info about options,
for options example