public <T> T decodeObject(@Nonnull String category, @Syntax("HOCON") String configText)
throws JsonProcessingException, IOException {
PluginMap pluginMap = Preconditions.checkNotNull(pluginRegistry.asMap().get(category),
"could not find anything about the category %s", category);
Config config = ConfigFactory.parseString(configText).resolve();
return (T) decodeObject(pluginMap.baseClass(), config);
}
public <T> T decodeObject(@Nonnull Class<T> type, @Syntax("HOCON") String configText)
throws JsonProcessingException, IOException {
Config config = ConfigFactory.parseString(configText).resolve();