Class DataProvider
java.lang.Object
com.pnfsoftware.jeb.core.dao.impl.DataProvider
- All Implemented Interfaces:
IDataProvider
Simple immutable implementation of
IDataProvider.-
Constructor Summary
ConstructorsConstructorDescriptionDataProvider(IUserDatabase userdb, IFileDatabase projectdb, IFileStore filestore, IFileStore pluginstore, IApplicationDatabase appdb, IConfiguration config) Create a data provider from explicit source components. -
Method Summary
Modifier and TypeMethodDescriptionGet the application database.Get the configuration data.Get the primary file store.Get the plugins file store.Get the project database.Get the user database.
-
Constructor Details
-
DataProvider
public DataProvider(IUserDatabase userdb, IFileDatabase projectdb, IFileStore filestore, IFileStore pluginstore, IApplicationDatabase appdb, IConfiguration config) Create a data provider from explicit source components.- Parameters:
userdb- optional user databaseprojectdb- optional project databasefilestore- optional primary file storepluginstore- optional plugin file storeappdb- optional application databaseconfig- optional configuration object
-
-
Method Details
-
getUserDatabase
Description copied from interface:IDataProviderGet the user database.Optional. Not used by JEB.
- Specified by:
getUserDatabasein interfaceIDataProvider- Returns:
- the optional user database, or
null
-
getProjectDatabase
Description copied from interface:IDataProviderGet the project database.- Specified by:
getProjectDatabasein interfaceIDataProvider- Returns:
- the project database, or
null
-
getFileStore
Description copied from interface:IDataProviderGet the primary file store.Optional. Not used by JEB.
- Specified by:
getFileStorein interfaceIDataProvider- Returns:
- the optional primary file store, or
null
-
getPluginStore
Description copied from interface:IDataProviderGet the plugins file store.- Specified by:
getPluginStorein interfaceIDataProvider- Returns:
- the plugin file store, or
null
-
getApplicationDatabase
Description copied from interface:IDataProviderGet the application database.Optional. Not used by JEB.
- Specified by:
getApplicationDatabasein interfaceIDataProvider- Returns:
- the optional application database, or
null
-
getConfiguration
Description copied from interface:IDataProviderGet the configuration data.- Specified by:
getConfigurationin interfaceIDataProvider- Returns:
- the configuration object, or
null
-