Class StorageConfig


  • public class StorageConfig
    extends java.lang.Object
    The storage.yml configuration file parser
    • Constructor Detail

      • StorageConfig

        public StorageConfig​(@NotNull
                             @NotNull AnnoyingFile<?> file)
        Construct a new StorageConfig instance to parse a storage configuration file
        Parameters:
        file - file
    • Method Detail

      • createConnection

        @NotNull
        public @NotNull java.sql.Connection createConnection()
                                                      throws ConnectionException
        Create a new Connection to the configured database
        Returns:
        a new Connection to the database
        Throws:
        ConnectionException - if the connection to the database fails for any reason