Takes (framework)
![]()  | |
| Developer(s) | Yegor Bugayenko | 
|---|---|
| Stable release | 0.32.7 / April 3, 2016 | 
| Written in | Java | 
| Operating system | Cross-platform | 
| Platform | Java Virtual Machine | 
| Type | Web framework | 
| License | MIT | 
| Website | 
www | 
Takes is an open source web framework based on the principles of immutability and object-oriented programming.
Its key benefits, comparing to all others, include these four fundamental principles:
- Not a single NULL
 - Not a single public static method
 - Not a single mutable class, and
 - Not a single instanceof keyword, type casting, or reflection.
 
Features
- No configuration files
 - No need to use any web container
 - Hit-refresh debugging
 - Native support of XML+XSLT templating
 - Native support of JSON
 - JUnit integration
 - Velocity, JSP, JSF templates/layouts
 - Open-source
 - Lightweight
 
Example
A Hello World Takes application, with just one file:
- Hello.java
 
import org.takes.http.Exit;
import org.takes.http.FtBasic;
import org.takes.facets.fork.TkFork;
public final class Hello {
  public static void main(final String... args) throws Exception {
    new FtBasic(
      new TkFork(new FkRegex("/", "hello, world!")), 8080
    ).start(Exit.NEVER);
  }
}
References
External links
This article is issued from Wikipedia - version of the Friday, April 22, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.
