Package org.jboss.hal.config
Class Settings
- java.lang.Object
-
- org.jboss.hal.config.Settings
-
public class Settings extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettings.Keystatic classSettings.Value
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_LOCALEstatic intDEFAULT_PAGE_SIZEstatic intDEFAULT_POLL_TIMEstatic SettingsINSTANCEstatic int[]PAGE_SIZE_VALUES
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Settings.Valueget(Settings.Key key)<T> voidload(Settings.Key key, T defaultValue)<T> voidset(Settings.Key key, T value)StringtoString()
-
-
-
Field Detail
-
INSTANCE
@Inject public static Settings INSTANCE
-
DEFAULT_LOCALE
public static final String DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_POLL_TIME
public static final int DEFAULT_POLL_TIME
- See Also:
- Constant Field Values
-
PAGE_SIZE_VALUES
public static final int[] PAGE_SIZE_VALUES
-
-
Method Detail
-
load
public <T> void load(Settings.Key key, T defaultValue)
-
get
public Settings.Value get(Settings.Key key)
-
set
public <T> void set(Settings.Key key, T value)
-
-