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
object BlackListController extends Controller { | |
val myActor = Akka.system.actorOf(Props[LicenceBlackList], name = "LicenceBlackListActor") | |
type OptionalBlacklistEntry = Option[BlacklistEntry] | |
def get(key: String) = Action.async { | |
//we will use this promise to create a future (read handle) which will be returned from this action. This future will complete when the promise is successfully populated with value | |
val p = Promise[Option[BlacklistEntry]] |
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
import com.owlike.genson.{ GensonBuilder, ScalaBundle, ScalaGenson } | |
import org.scalatest.{ Matchers, WordSpecLike } | |
trait GenericType { | |
def providerId: Int | |
} | |
class SpecialisedTypeA( | |
val providerId: Int, | |
val sourceEntityId: String |