Class SQLDriverLoader
java.lang.Object
de.craftsblock.craftsnet.addon.services.builtin.SQLDriverLoader
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanLoads anDriverinto theDriverManagerfor further processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.craftsblock.craftsnet.addon.services.ServiceLoader
newInstance
-
Constructor Details
-
SQLDriverLoader
public SQLDriverLoader()
-
-
Method Details
-
load
Loads anDriverinto theDriverManagerfor further processing.This method registers the provided
Driverinstance with theDriverManager.- Specified by:
loadin interfaceServiceLoader<Driver>- Parameters:
provider- The instance of theDriverto be loaded.- Returns:
- true if the provider is successfully loaded and registered, false otherwise.
-