Class ConfigurationService


  • public class ConfigurationService
    extends Object
    The ConfigurationService is used by the FHIR Server to retrieve JSON-based configuration data.
    • Field Detail

      • PROPERTY_GROUP_CLASSNAME

        public static final String PROPERTY_GROUP_CLASSNAME
        This property can be used to set the name of the "property group" class that should be instantiated with the top-level JsonObject representing the configuration.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigurationService

        public ConfigurationService()
    • Method Detail

      • loadConfiguration

        public static PropertyGroup loadConfiguration​(String filename)
                                               throws Exception
        Loads the specified file as a JSON file and returns a PropertyGroup containing the contents of the JSON file as the root property group.
        Parameters:
        filename - the name of the JSON file to be loaded
        Throws:
        FileNotFoundException
        Exception
      • loadConfiguration

        public static PropertyGroup loadConfiguration​(InputStream is)
                                               throws Exception
        Loads the specified input stream as a JSON file and returns a PropertyGroup containing the contents of the JSON file as the root property group.
        Parameters:
        is - an InputStream to the input JSON file
        Throws:
        Exception