Class CredentialsProviderFactory
java.lang.Object
dev.cwhead.GravesX.manager.db.CredentialsProviderFactory
Creates the correct HikariCredentialsProvider for the active DB type.
Reads from plugin config on every call so reloads/secret-rotation can take effect
for newly-created connections.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple provider that fetches user/pass from config keys. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.zaxxer.hikari.HikariCredentialsProviderforType(Graves plugin, DataManager.Type type)
-
Method Details
-
forType
public static com.zaxxer.hikari.HikariCredentialsProvider forType(Graves plugin, DataManager.Type type)
-