--
You received this message because you are subscribed to the Google Groups "Play framework dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
does switching to Akka HTTP as default HTTP server means akka-http is as
fast as netty now? Are there any benchmarks?
Best regards,
Vladimir
In Play 2.6, the core Play module no longer includes Guice. You will need to configure the Guice module by adding guice
to your libraryDependencies
:
libraryDependencies += guice
The deprecated static methods play.libs.Akka.system
and play.api.libs.concurrent.Akka.system
were removed. Please dependency inject an ActorSystem
instance for access to the actor system.
For Scala:
class MyComponent @Inject() (system: ActorSystem) {
}
--
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-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/CAA%3D11HyXpPPu8SW1zyv7icbJwJjoG17yr9d1HkeMmwAiTaNyzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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/6abcbfa2-bf09-4c82-b8c4-aa461ce6f460%40googlegroups.com.
> Is it possible now to run a play app without a runtime dependency injection framework at all and only rely on compile-time DI?
yes> I presume the actour system can be retrieved from the app in the application builder and given as standard constructor parameter to the component?> If I am not wrong it will be good to add this in the migration method for all the people using compile-time DI.
In 2.5 you already could use BuiltInComponents trait, which actually had the actor system defined for your.
https://www.playframework.com/documentation/2.6.x/ScalaCompileTimeDependencyInjection#Application-entry-point
sadly we have no example project for mac wire, but it's actually extremly simple.
Just define your ApplicationComponent which mixes in Components you need/created
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/6abcbfa2-bf09-4c82-b8c4-aa461ce6f460%40googlegroups.com.
Should we mention the new PlayMinimalJava plugin in the release highlights or the migration guide?When using the minimal java plugin some dependencies and twirl template imports won't be included:
Some feedback from just a few minutes with 2.6:- I noticed the Configuration API changes and like the Type Class approach but having yet another API for traversing trees and extracting values seems unnecessary. Can it use the same API as the JSON API? Also, these API changes aren't mentioned in the Migration Guide.- I think the docs should be updated to use Twirl Template injection. I noticed that https://www.playframework.com/documentation/2.6.x/Migration26#Assets doesn't and I'm sure there are some other places that could benefit from template injection as well.
public MyController @Inject()(template: views.html.index) extends Controller {
def index = Action {
Ok(template())
}
}
@this(messagesApi: play.api.i18n.MessagesApi)
@()
@{messagesApi("hello.world")}
TwirlKeys.constructorAnnotations += "@javax.inject.Inject()"
Is it possible now to run a play app without a runtime dependency injection framework at all and only rely on compile-time DI?
Sorry to ask but it was not obvious reading the documentation above.
I presume the actour system can be retrieved from the app in the application builder and given as standard constructor parameter to the component?
--
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/5e12ee70-29e2-42ec-90b5-2a96dc1b42c2%40googlegroups.com.
--
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/1a83105e-734e-463c-9e96-43e00e827694%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/CAA%3D11HzCDhSwP-uwzLjdqAJ4oGRNW9GJ%3DM0Vgn82%3DNVxVCy2Xg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Play framework dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework-dev+unsub...@googlegroups.com.
Hi Denis,You're right that controllers.AssetsComponents is a little weird. The reason it's in "controllers" is because Assets and other related classes are in the root controllers package, so it made sense that we should keep all that together.That said, we want to move all the built-in Play controllers to play.controllers. This is planned for 2.6.0 but hasn't been completed yet: https://github.com/playframework/playframework/pull/6555
On Sun, Mar 5, 2017 at 8:23 AM, Denis Kalinin <denn...@gmail.com> wrote:
I've just upgraded my sample app to Play 2.6-M1.--It wasn't very difficult, so thanks for your work and a decent migration guide.However, I have a question. With compile-time DI, I need to add the AssetsComponents trait to the AppComponents class. This trait resides in the 'controllers' package, so it has the same name as the package for my controllers. It's not a generated file, as far as I can tell, but to reference it, I need to use `_root_.controllers.AssetsComponents` (this, by the way, is not obvious from reading the docs as they don't mention the 'root' thing). What is the reason for putting it into this package? Wouldn't it be better to use something more traditional like `play.mvc.controllers`?
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-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/5e12ee70-29e2-42ec-90b5-2a96dc1b42c2%40googlegroups.com.