public class Settings extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Settings.Key |
static class |
Settings.Value |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOCALE |
static int |
DEFAULT_PAGE_SIZE |
static Settings |
INSTANCE |
static int[] |
PAGE_SIZE_VALUES |
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
Settings.Value |
get(Settings.Key key) |
<T> void |
load(Settings.Key key,
T defaultValue) |
<T> void |
set(Settings.Key key,
T value) |
@Inject public static Settings INSTANCE
public static final String DEFAULT_LOCALE
public static final int DEFAULT_PAGE_SIZE
public static final int[] PAGE_SIZE_VALUES
public <T> void load(Settings.Key key, T defaultValue)
public Settings.Value get(Settings.Key key)
public <T> void set(Settings.Key key, T value)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.