| Constructor and Description |
|---|
MessageConfig(Message instance)
Create a config that wraps a providence message instance.
|
MessageConfig(String prefix,
Message instance)
Create a config that wraps a providence message instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
Object |
get(String key) |
Message |
getMessage()
Get the message enclosed in the config wrapper.
|
String |
getPrefix()
Get the key prefix used in the config wrapper.
|
Set<String> |
keySet() |
public MessageConfig(Message instance)
instance - The actual message instance to expose to the config.public MessageConfig(String prefix, Message instance)
prefix - Prefix for appending to the keys as it is exposed as
to the config interface. Each "virtual" config key will
become the providence $prefix.$path where
the $path variable is the internal path to the value
entry.instance - The actual message instance to expose to the config.public String getPrefix()
public Message getMessage()
public boolean containsKey(String key)
containsKey in interface net.morimekta.config.ConfigCopyright © 2015–2016 morimekta.net. All rights reserved.