
com.github.resource4j.extras.config.ConfigResourceBundleParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource4j-extras Show documentation
Show all versions of resource4j-extras Show documentation
Integration of Resource4J with various parsers and other addons.
package com.github.resource4j.extras.config;
import java.util.Map;
import com.github.resource4j.ResourceObject;
import com.github.resource4j.resources.discovery.ContentType;
import com.github.resource4j.resources.discovery.ResourceBundleParser;
@ContentType(extension = "conf", mimeType = "application/hocon")
public class ConfigResourceBundleParser implements ResourceBundleParser {
private ConfigMapParser parser = new ConfigMapParser();
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public Map parse(ResourceObject file) {
return (Map) file.parsedTo(parser).asIs();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy