public class Coffig extends Object
Modifier and Type | Method and Description |
---|---|
static Coffig |
basic() |
static CoffigBuilder |
builder() |
Coffig |
fork() |
<T> T |
get(Class<T> configurationClass,
String... path) |
Object |
get(Type type,
String... path) |
<T> T |
getMandatory(Class<T> configurationClass,
String... path) |
Object |
getMandatory(Type configurationClass,
String... path) |
ConfigurationMapper |
getMapper() |
<T> Optional<T> |
getOptional(Class<T> configurationClass,
String... path) |
Optional<Object> |
getOptional(Type configurationType,
String... path) |
ConfigurationProcessor |
getProcessor() |
ConfigurationProvider |
getProvider() |
TreeNode |
getTree() |
boolean |
isDirty() |
static String |
pathOf(AnnotatedElement annotatedElement) |
void |
refresh() |
void |
registerListener(String path,
ConfigChangeListener configChangeListener) |
void |
startWatching() |
void |
stopWatching() |
String |
toString() |
void |
unregisterListener(ConfigChangeListener configChangeListener) |
public static CoffigBuilder builder()
public static Coffig basic()
public static String pathOf(AnnotatedElement annotatedElement)
public void startWatching()
public void stopWatching()
public void registerListener(String path, ConfigChangeListener configChangeListener)
public void unregisterListener(ConfigChangeListener configChangeListener)
public void refresh()
public Coffig fork()
public boolean isDirty()
public TreeNode getTree()
public ConfigurationMapper getMapper()
public ConfigurationProvider getProvider()
public ConfigurationProcessor getProcessor()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.