Interface Configuration

All Known Implementing Classes:
JSONConfiguration

public interface Configuration
An interface for managing configuration files or similar.

Classes that implement this method usually support a single configuration format. Application classes then extend from those classes and declare several fields with the ConfigurationOption annotation, which will be populated by a call to load(), with values from the configuration source.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Loads this configuration.
  • Method Details

    • load

      void load() throws IOException
      Loads this configuration.

      All fields with the ConfigurationOption annotation will be populated with values from the configuration source.

      Throws:
      IOException - If an IO error occurs