Class ConfigurationFactory

    • Constructor Detail

      • ConfigurationFactory

        public ConfigurationFactory()
    • Method Detail

      • getInstance

        public static ConfigurationFactory getInstance()
        Returns the ConfigurationFactory.
        Returns:
        the ConfigurationFactory.
      • setConfigurationFactory

        public static void setConfigurationFactory​(ConfigurationFactory factory)
        Sets the configuration factory. This method is not intended for general use and may not be thread safe.
        Parameters:
        factory - the ConfigurationFactory.
      • resetConfigurationFactory

        public static void resetConfigurationFactory()
        Resets the ConfigurationFactory to the default. This method is not intended for general use and may not be thread safe.
      • removeConfigurationFactory

        public static void removeConfigurationFactory​(ConfigurationFactory factory)
        Removes the ConfigurationFactory. This method is not intended for general use and may not be thread safe.
        Parameters:
        factory - The factory to remove.
      • getSupportedTypes

        protected abstract String[] getSupportedTypes()
      • getTestPrefix

        protected String getTestPrefix()
      • getDefaultPrefix

        protected String getDefaultPrefix()
      • getVersion

        protected String getVersion()
      • isActive

        protected boolean isActive()
      • getConfiguration

        public Configuration getConfiguration​(LoggerContext loggerContext,
                                              String name,
                                              URI configLocation)
        Returns the Configuration.
        Parameters:
        loggerContext - The logger context
        name - The configuration name.
        configLocation - The configuration location.
        Returns:
        The Configuration.
      • getConfiguration

        public Configuration getConfiguration​(LoggerContext loggerContext,
                                              String name,
                                              URI configLocation,
                                              ClassLoader loader)
        Returns the Configuration obtained using a given ClassLoader.
        Parameters:
        loggerContext - The logger context
        name - The configuration name.
        configLocation - A URI representing the location of the configuration.
        loader - The default ClassLoader to use. If this is null, then the default ClassLoader will be used.
        Returns:
        The Configuration.
      • getInputFromString

        protected ConfigurationSource getInputFromString​(String config,
                                                         ClassLoader loader)
        Loads the configuration from the location represented by the String.
        Parameters:
        config - The configuration location.
        loader - The default ClassLoader to use.
        Returns:
        The InputSource to use to read the configuration.