Java Application Development Frameworks build for scalability
What is framework? ➢
In programming, the framework is :
➢
An abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code providing specifc functionality - Wikipedia
Reasons to use framework ➢
Reduced development efort by using core collection classes arather than implementing our own collection classes.
➢
Code quality is enhanced with the use of well tested collections framework classes.
➢
Reduced efort for code maintenance by using collection classes shipped with JDK.
➢
Reusability and Interoperability
Java Application Development Frameworks
What is MVC? ➢
Model–view–controller (MVC) is a software architectural pattern for implementing user interfaces.
➢
It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user
- Wikipedia
MVC Basic Structure Model MANIPULATES
View
Controller
ES SE
US ES
UPDATES
User
Frameworks ➢
MVC frameworks have been a staple of Java development
including
such
frameworks : 1. Spring 2. Spark 3. Play 4. Dropwizard
Java Application Development Frameworks
popular
How it works? ➢
Typically these applications host the view code on the server, where it is rendered and delivered to the client (web browser).
➢
Click a link or submit a form in your browser and it submits a request to the server, which does the requested work and builds a new view, refreshing the entire display in your user's computer.
Considerable factors Spring
Play
Dropwizard
Spark
License
Apache 2
Apache 2
Apache 2
Apache 2
HTTP
Undertow1
Netty
Jetty
Jetty
REST
Spring MVC2
Play5
Jersey
Spark5
JSON
Jackson3
Jackson
Jackson
Gson
Templates
JSP4
Twirl
Mustache4
Mustache4
Play5
via Jetty
via Jetty
WebSockets Spring API5 DB/ORM
Spring Data5
Ebean
JDBI
[MyBatis]6
Auth
Spring Security5
Play5
Dropwizard
[Shiro]6
Table specification 1. Spring Boot also supports Tomcat and Jetty. 2. Spring also supports JAX-RS using Jersey. 3. Spring can be confgured to use Gson instead of Jackson. 4. Other available template engines may include Freemarker, Velocity, Thymeleaf, Tiles, Handlebars, and Jade. 5. This feature is built-in to the framework. 6. As a lightweight framework Spark doesn’t come with database or auth components, however other lightweight, single-purpose, 3rd components under the Apache 2 license make sense with this framework
Java Application Development Frameworks
Spring framework ➢
First released in 2004.
➢
it expanded to include a full MVC framework it has continued to adapt to change and is a true
full-service
framework
providing
services for security, web services, database integrations & more.
Spring framework
Play framework ➢
Don't to be confused with Google Play
➢
It was conceived in 2007 as a web MVC framework supporting REST web services as a frst-class citizen.
➢
In addition to Java, Play framework supports Scala,
an
object-oriented
functional
language on the Java virtual machine.
Java Application Development Frameworks
Spring framework
DropWizard framework ➢
It
is
focused
on
rapid
development
and
deployment of Java web applications and REST services ➢
Mostly
Dropwizard
between integrated
focuses
components
to
development
on
the
provide
a
experience.
"glue" more It
is
designed to be a simple, lightweight framework with everything you need to deploy your Java project.
Spark framework ➢
It started in 2011 as a forward-thinking framework based upon simplicity and modeled after Ruby’s framework.
➢
The focus is on developer productivity & the extremely lightweight framework that provides just what is necessary and no more for java application development.
Spring framework
Contact Us Address : "Royal Square", 1st Floor, Of No. 110, Nr. Shilp Tower, Tagore Road, Rajkot - 360 001 Gujarat – India Email : info@nexsoftsys.com Twitter : twitter.com/nexsoftsys Facebook : facebook.com/NexSoftSys Pinterest : pinterest.com/nexsoftsys/ G+ : plus.google.com/+Nexsoftsys/posts