Skip to content

Commit

Permalink
chore: add database manager to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Mar 7, 2023
1 parent 724b603 commit be573fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/infrastructure/provider/ManagerProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package infrastructure.provider

import application.controller.manager.RoomDatabaseManager
import application.controller.manager.RoomDigitalTwinManager

/**
Expand All @@ -16,4 +17,7 @@ import application.controller.manager.RoomDigitalTwinManager
interface ManagerProvider {
/** The manager of the Digital Twin of the room. */
val roomDigitalTwinManager: RoomDigitalTwinManager

/** The manager of the Database for room. */
val roomDatabaseManager: RoomDatabaseManager
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

package infrastructure.provider

import infrastructure.database.DatabaseManager
import infrastructure.digitaltwins.DigitalTwinManager

/**
* Provider that creates the different managers.
*/
class ManagerProviderImpl : ManagerProvider {
override val roomDigitalTwinManager = DigitalTwinManager()
override val roomDatabaseManager = DatabaseManager()
}

0 comments on commit be573fe

Please sign in to comment.