mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] SQLCoreProvider
This commit is contained in:
parent
095a5aef8b
commit
52c9196dcc
1 changed files with 15 additions and 0 deletions
|
@ -1,10 +1,25 @@
|
||||||
package pro.gravit.launchserver.auth.core;
|
package pro.gravit.launchserver.auth.core;
|
||||||
|
|
||||||
|
import pro.gravit.launchserver.LaunchServer;
|
||||||
|
import pro.gravit.launchserver.auth.AuthProviderPair;
|
||||||
import pro.gravit.launchserver.auth.HikariSQLSourceConfig;
|
import pro.gravit.launchserver.auth.HikariSQLSourceConfig;
|
||||||
import pro.gravit.launchserver.auth.SQLSourceConfig;
|
import pro.gravit.launchserver.auth.SQLSourceConfig;
|
||||||
|
|
||||||
public class SQLCoreProvider extends AbstractSQLCoreProvider {
|
public class SQLCoreProvider extends AbstractSQLCoreProvider {
|
||||||
public HikariSQLSourceConfig holder;
|
public HikariSQLSourceConfig holder;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void close() {
|
||||||
|
super.close();
|
||||||
|
holder.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(LaunchServer server, AuthProviderPair pair) {
|
||||||
|
holder.init();
|
||||||
|
super.init(server, pair);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SQLSourceConfig getSQLConfig() {
|
public SQLSourceConfig getSQLConfig() {
|
||||||
return holder;
|
return holder;
|
||||||
|
|
Loading…
Reference in a new issue