--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/d7da6343-5b9e-4c08-856a-5c0c23203088%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
class AppApplicationLoader extends ApplicationLoader {
override def load(context: ApplicationLoader.Context): PlayApplication = { LoggerConfigurator(context.environment.classLoader).foreach { cfg => cfg.configure(context.environment) } new AppComponents(context).application }}
class AppComponents(context: Context) extends BuiltInComponentsFromContext(context) with MoreTraitsHere {
.... more stuff ... // Actors lazy val myActor: ActorRef = actorSystem.actorOf(MyActor.props(), MyActor.name) .... more stuff ...
}
play.application.loader = "AppApplicationLoader"