After a year of development the Play Team is excited to announce the release of Play 2.4.0 “Damiya”.
Play 2.4 gives you more modularity and flexibility. You can now configure your application with dependency injection. Or you can embed it in another application. You can mock parts of your application more easily. Play modules like Ebean and anorm have become their own projects, allowing them to release more often on their own schedules. All of this makes Play more powerful than ever before.
What’s new in Play 2.4
Dependency injection out of the box.
Testing is easier thanks to better support for mocking.
It is now straightforward to embed Play in your application.
You can now aggregate reverse routers from multiple projects.
More Java 8 integration—Java 8 is now required.
Choice of standard project layout.
Many new anorm features. Anorm is now its own project!
Upgraded to Ebean 4. Play-Ebean is (also) its own project!
HikariCP is the default connection pool
WS supports Server Name Identification (SNI).
Simplified Logback configuration.
Play’s bytecode enhancement has been separated out into its own project.
More flexible IDE support.
Lots of work on improving the documentation.
For details see the Play 2.4 Highlights and the Play 2.4 Migration Guide.
Damiya
Play 2.4 has been named “Damiya”, in memory of Play contributor Kate von Roeder, who went by the alias damiya on GitHub.
Download Play 2.4.0
If you already have Activator installed, run activator new and choose play-scala or play-scala to create a new Play 2.4.0 project. Visit the Play downloads page for information on how to download and install Activator, and get started with Play.
Credits
Development of Play 2.4 has been underway for a year. The 2.4.0 release is made up of over 1000 commits by 176 different people. Of the 176 contributors, 129 are new to the Play project. That makes an all-time total of 494 contributors to Play.
It’s not all about the code either. We’d also like to thank everyone that got involved in the community in other ways too, reporting bugs, on the mailing list, on Stack Overflow and in our new Gitter chat room. It’s amazing to see the growing size and strength of Play’s community.
Thanks a lot everyone, we couldn’t do it without you!
– The Play Team
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/55f1f9e7-864d-4035-a1be-8e6435cd1af0%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-framewor...@googlegroups.com.
Knowledge is knowing a tomato is a fruit.
Wisdom is not putting it into a fruit salad.
A person is just about as big as the things that make him angry.
Be cheerful while you are alive.
-- Phathotep, 24th Century B.C.
Anyone can become angry -- that is easy; but to be angry with the right
person, to the right degree, at the right time, for the right purpose
and in the right way -- that is not easy.
-- Aristotle
--
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.
> run activator new and choose play-scala or play-scalaBeing a big Scala fan, I love the Scala bias... but just for completeness, Java devs, you can in fact also choose play-java ;)
All of the material in our "Introduction to Play" course, including code examples and lecture notes has been updated to Play 2.4.0
Mike
--
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/77c6f27a-0969-4017-ac6b-6ca20fad2782%40googlegroups.com.
import play.Configuration;import play.Environment;
import javax.inject.Inject;
import javax.inject.Singleton;
@Singleton
public class Global {
@Inject
public Global(Environment environment, Configuration configuration) {//Access to environment.isDev() and configuration
}
}
public class AppModule extends AbstractModule {
protected void configure() {
//Eager load Global to ensure we init stuff when application start
bind(Global.class).asEagerSingleton();
}
}
play.modules.enabled += "modules.AppModule"
...
getControllerInstance removed from GlobalSettings and there is not any solution about it in migration guide. I set Spring DI in my project and now I cant migrate to play 2.4
--
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.
1) Error injecting constructor, java.lang.RuntimeException: There is no started application at de.envisia.search.services.SearchService.<init>(SearchService.java:29) at de.envisia.search.modules.SearchModule.configure(SearchModule.java:12) (via modules: com.google.inject.util.Modules$OverrideModule -> de.envisia.search.modules.SearchModule) while locating de.envisia.search.services.SearchService
We've designed Play 2.4 dependency injection system to work well with Spring. Here's a proof of concept from last year, it would be great it someone could take the proof of concept and update and maintain it!– Rich
On Sat, May 30, 2015 at 7:37 PM, Mohsen Kashi <mhmh...@gmail.com> wrote:getControllerInstance removed from GlobalSettings and there is not any solution about it in migration guide. I set Spring DI in my project and now I cant migrate to play 2.4
This sample project is in Scala and also old, there is not any guide to setup Play 2.4 dependency injection with Spring DI and Java. please add a template project for it. We want to migrate our project to Play 2.4 but we do not want to use Guice.