public enum ConfigRegistry extends Enum<ConfigRegistry>
| Enum Constant and Description |
|---|
CONFIG_REGISTRY |
| Modifier and Type | Method and Description |
|---|---|
void |
clearConfigs() |
<T> T |
getConfig(Class<T> clazz) |
AbstractConfig |
getConfig(String name) |
Map<String,AbstractConfig> |
getConfigMap() |
Set<String> |
getConfigNames() |
Set<AbstractConfig> |
getConfigs() |
void |
registerConfig(AbstractConfig instance) |
void |
scanConfigs() |
void |
scanConfigs(String[] packages) |
void |
unregisterConfig(Class<? extends AbstractConfig> clazz) |
static ConfigRegistry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigRegistry CONFIG_REGISTRY
public static ConfigRegistry[] values()
for (ConfigRegistry c : ConfigRegistry.values()) System.out.println(c);
public static ConfigRegistry valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void registerConfig(AbstractConfig instance)
public void unregisterConfig(Class<? extends AbstractConfig> clazz)
public <T> T getConfig(Class<T> clazz)
public AbstractConfig getConfig(String name)
public Map<String,AbstractConfig> getConfigMap()
public Set<AbstractConfig> getConfigs()
public void clearConfigs()
public void scanConfigs()
public void scanConfigs(String[] packages)
Copyright © 2017 aequologica. All rights reserved.