Class DataSourceConfigProvider

java.lang.Object
fr.prodrivers.bukkit.commons.storage.DataSourceConfigProvider
All Implemented Interfaces:
javax.inject.Provider<io.ebean.datasource.DataSourceConfig>

@Singleton public class DataSourceConfigProvider extends Object implements javax.inject.Provider<io.ebean.datasource.DataSourceConfig>
Database source configuration for Ebean ORM usage in Prodrivers plugins. Requires dependency injection.

Intended to be used with a dependency injector. It is already made available in ProdriversCommons' public module, no further action is needed apart from adding the module to your own dependency injector instance.

  • Method Details

    • get

      public io.ebean.datasource.DataSourceConfig get()
      Gets a new Ebean Database source configuration instance.
      Specified by:
      get in interface javax.inject.Provider<io.ebean.datasource.DataSourceConfig>
      Returns:
      Database source configuration or null