Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the Play Framework function?

I love Play!. Compared to other enterprise Java frameworks, it's incredibly simple for the developer to use. But, how does it do that? What makes the edit-refresh cycle possible with a compiled language like Java? What makes Play! work the way it works?

like image 554
ruwanego Avatar asked Mar 04 '11 06:03

ruwanego


People also ask

How does play framework work?

The Play framework is a web framework for the JVM that breaks away from the Servlet Specification. Play embraces a fully reactive programming model through the use of futures for asynchronous programming, work stealing for maximizing available threads, and Akka for distribution of work.

What is a controller in play framework?

A Controller is a Java class, hosted by the controllers package, and subclassing play.

Is Play framework still used?

Play is rock-solid and used by hundreds of thousands of Java and Scala developers every month. Play is still extremely relevant to today's application and web development and has a passionate and very capable community around it ensuring that it has many good years left.

Which component is responsible for building play framework?

Play Framework is an open-source web application framework which follows the model–view–controller (MVC) architectural pattern. It is written in Scala and usable from other programming languages that are compiled to JVM bytecode, e.g. Java.

What is Play Framework?

This article relies too much on references to primary sources. Please improve this by adding secondary or tertiary sources. Play Framework is an open-source web application framework which follows the model–view–controller (MVC) architectural pattern.

What makes play different from other web frameworks?

Asynchronous I/O: due to using Akka HTTP as its web server, Play can service long requests asynchronously rather than tying up HTTP threads doing business logic like Java EE frameworks that don't use the asynchronous support offered by Servlet 3.0. [20] Modular architecture: like Ruby on Rails and Django, Play comes with the concept of modules.

Where can I find examples of Play Framework templates in Scala?

When you want to create a Play Framework template function, you can find some examples on the Scala Templates page. There you'll find these first two examples. First, assuming you have a Product model defined something like this:

What is play web development?

Play is heavily inspired by ASP.NET MVC, Ruby on Rails and Django and is similar to this family of frameworks. Play web applications can be written in Scala or Java, in an environment that may be less Java Enterprise Edition-centric.


1 Answers

Play uses the Eclipse compiler to compile code at run-time.

Take a look at the following class, that is used by Play to perform the necessary compilation at run time.

https://github.com/playframework/play/blob/master/framework/src/play/classloading/ApplicationCompiler.java

like image 158
Codemwnci Avatar answered Sep 19 '22 01:09

Codemwnci