Interface LitebridgeOverrideDatabaseProvider<LB>

Type Parameters:
LB - The type of the custom Litebridge implementation supported by this provider.
All Superinterfaces:
DatabaseProvider

public interface LitebridgeOverrideDatabaseProvider<LB> extends DatabaseProvider
Specialised database provider for a custom Litebridge implementation.

This interface should be implemented by database providers that support custom Litebridge types. It provides methods to identify the custom Litebridge class type and optionally construct instances of it.

Note that the "built-in" Litebridge variants (LitebridgeCore and Litebridge) do not require a custom construction implementation.

  • Method Details

    • litebridgeClass

      Class<LB> litebridgeClass()
      Returns the class type of the custom Litebridge implementation supported by this provider.
      Returns:
      The class type of the custom Litebridge implementation.
    • createLitebridge

      default LB createLitebridge(LitebridgeBuilder.ConstructorArgs constructorArgs)
      Returns an instance of the custom Litebridge implementation supported by this provider.

      This method is not needed for Litebridge or LitebridgeCore.

      Parameters:
      constructorArgs - The constructor arguments for the custom Litebridge implementation.
      Returns:
      An instance of the custom Litebridge implementation.