Frameworks

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 16

FRAMEWORKS

WHAT IS FRAMEWORK:
• A framework in programming is a tool that provides ready-made
components or solutions that are customized in order to speed up
development. 
WHAT IS FRAMEWORK:
• Java Framework is the body or platform of pre-written codes used by Java
developers to develop Java applications or web applications. In other
words, Java Framework is a collection of predefined classes and functions that
is used to process input, manage hardware devices interacts with system
software.
SPRING
SPRING FRAMEWORK:
• Spring is a lightweight framework. It can be thought of as a framework of
frameworks because it provides support to various frameworks such as Struts,
Hibernate, Tapestry, EJB, JSF, etc. The framework, in broader sense, can be
defined as a structure where we find solution of the various technical problems.
ADVANTAGES OF SPRING FRAMEWORK
Predefined Templates:
•Spring framework provides templates for JDBC, Hibernate, JPA etc.
technologies. So there is no need to write too much code. It hides the basic
steps of these technologies.
•Let's take the example of JdbcTemplate, you don't need to write the code for
exception handling, creating connection, creating statement, committing
transaction, closing connection etc. You need to write the code of executing
query only. Thus, it save a lot of JDBC code.
ADVANTAGES OF SPRING FRAMEWORK
Loose Coupling
•The Spring applications are loosely coupled because of dependency injection.
ADVANTAGES OF SPRING FRAMEWORK
Easy to test
•The Dependency Injection makes easier to test the application. 
ADVANTAGES OF SPRING FRAMEWORK
Lightweight
•Spring framework is lightweight because of its POJO implementation. The
Spring Framework doesn't force the programmer to inherit any class or
implement any interface. That is why it is said non-invasive.
ADVANTAGES OF SPRING FRAMEWORK
Fast Development
•The Dependency Injection feature of Spring Framework and it support to
various frameworks makes the easy development of JavaEE application.
ADVANTAGES OF SPRING FRAMEWORK
Powerful abstraction
•It provides powerful abstraction to JavaEE specifications such as JMS, JDBC,
JPA and JTA.
ADVANTAGES OF SPRING FRAMEWORK
Declarative support:
•It provides declarative support for caching, validation, transactions and
formatting.
JSF
WHAT IS JSF?
• JavaServer Faces (JSF) is a MVC web framework that simplifies the
construction of User Interfaces (UI) for server-based applications using
reusable UI components in a page.
• JSF provides a facility to connect UI widgets with data sources and to
server-side event handlers.
• The JSF specification defines a set of standard UI components and provides
an Application Programming Interface (API) for developing components.
JSF enables the reuse and extension of the existing standard UI components .
BENEFITS:
• JSF reduces the effort in creating and maintaining applications, which will
run on a Java application server and will render application UI on to a target
client. JSF facilitates Web application development by −
Providing reusable UI components.
Making easy data transfer between UI components.
Managing UI state across multiple server requests.
Enabling implementation of custom components.
Wiring client-side event to server-side application code.

You might also like