Class SQLDriverLoader

java.lang.Object
de.craftsblock.craftsnet.addon.services.builtin.SQLDriverLoader
All Implemented Interfaces:
ServiceLoader<Driver>

public class SQLDriverLoader extends Object implements ServiceLoader<Driver>
A concrete implementation of the ServiceLoader interface for managing instances of Driver. This class specifically focuses on loading instances of Driver into the DriverManager.
Since:
3.0.0-SNAPSHOT
  • Constructor Details

    • SQLDriverLoader

      public SQLDriverLoader()
  • Method Details

    • load

      public boolean load(Driver provider)
      Loads an Driver into the DriverManager for further processing.

      This method registers the provided Driver instance with the DriverManager.

      Specified by:
      load in interface ServiceLoader<Driver>
      Parameters:
      provider - The instance of the Driver to be loaded.
      Returns:
      true if the provider is successfully loaded and registered, false otherwise.