-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update mangopay api to get rid of jdbc schema provider
- Loading branch information
Showing
4 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
mangopay/api/src/main/scala/app/softnetwork/payment/api/MangoPayPostgresLauncher.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package app.softnetwork.payment.api | ||
|
||
import app.softnetwork.persistence.jdbc.schema.JdbcSchemaTypes | ||
import app.softnetwork.persistence.schema.SchemaType | ||
import akka.actor | ||
import akka.actor.typed.ActorSystem | ||
import app.softnetwork.persistence.jdbc.schema.{JdbcSchema, JdbcSchemaTypes} | ||
import app.softnetwork.persistence.schema.{Schema, SchemaProvider, SchemaType} | ||
import app.softnetwork.persistence.typed._ | ||
import com.typesafe.config.Config | ||
import org.slf4j.{Logger, LoggerFactory} | ||
|
||
object MangoPayPostgresLauncher extends MangoPayApi { | ||
object MangoPayPostgresLauncher extends MangoPayApi with SchemaProvider { | ||
lazy val log: Logger = LoggerFactory getLogger getClass.getName | ||
|
||
override val schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
override def schema: ActorSystem[_] => Schema = sys => | ||
new JdbcSchema { | ||
override def schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
override implicit def classicSystem: actor.ActorSystem = sys | ||
override def config: Config = MangoPayPostgresLauncher.this.config | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
...pi/src/main/scala/app/softnetwork/payment/api/MangoPayWithSchedulerPostgresLauncher.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
package app.softnetwork.payment.api | ||
|
||
import app.softnetwork.persistence.jdbc.schema.JdbcSchemaTypes | ||
import app.softnetwork.persistence.schema.SchemaType | ||
import akka.actor | ||
import akka.actor.typed.ActorSystem | ||
import app.softnetwork.persistence.jdbc.schema.{JdbcSchema, JdbcSchemaTypes} | ||
import app.softnetwork.persistence.schema.{Schema, SchemaProvider, SchemaType} | ||
import app.softnetwork.persistence.typed._ | ||
import com.typesafe.config.Config | ||
import org.slf4j.{Logger, LoggerFactory} | ||
|
||
object MangoPayWithSchedulerPostgresLauncher extends MangoPayWithSchedulerApi { | ||
object MangoPayWithSchedulerPostgresLauncher extends MangoPayWithSchedulerApi with SchemaProvider { | ||
lazy val log: Logger = LoggerFactory getLogger getClass.getName | ||
override val schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
|
||
override def schema: ActorSystem[_] => Schema = sys => | ||
new JdbcSchema { | ||
override def schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
override implicit def classicSystem: actor.ActorSystem = sys | ||
override def config: Config = MangoPayWithSchedulerPostgresLauncher.this.config | ||
} | ||
} |