All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.resource4j.extras.config.ConfigResourceBundleParser Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
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