Interface PropertyInputStreamLoader

All Known Implementing Classes:
PropertyInputStreamLoaderTraditional

public interface PropertyInputStreamLoader
An abstraction for opening property files. Invoked via ParsedProperties.load(String).

The default implementation is PropertyInputStreamLoaderTraditional.

To override the default, additional PropertyInputStreamLoader implementations can be added to the classpath and referenced via the ServiceLoader mechanism.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    A helper for determining the precedence of the loader.
    Opens the property stream represented by the given name.
  • Method Details

    • getPriority

      long getPriority()
      A helper for determining the precedence of the loader.
      Returns:
      the priority - the lower, the better.
    • openConfiguration

      InputStream openConfiguration(String name) throws ConfigurationException
      Opens the property stream represented by the given name.
      Parameters:
      name - the name of the prop file
      Returns:
      the input stream
      Throws:
      ConfigurationException - if the property stream cannot be opened