480 likes | 768 Views
This Edureka "What Is Spring Framework" tutorial will help you in understanding the fundamentals of Spring Framework and build a strong foundation in Spring. Below are the topics covered in this tutorial: <br><br>1. Java Frameworks <br>2. Spring Framework <br>3. Why Spring Framework? <br>4. Spring Architecture <br>5. Spring Modules <br>6. Spring Features
E N D
` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Agenda For Today Java Frameworks Spring Framework Why Spring Framework? ` Architecture Modules Spring Features EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks So much of code !!!! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks Need something that is fast and efficient ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks Ohh! I can use Java Framework! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks This fits with my code too ! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks Problem Solved !! ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Frameworks Applications speed and efficiency increased ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Java Framework Principle Abides the Hollywood Principle that is “Don’t call us, we’ll call you”. Also called Inversion of flow or Inversion of Control Class B Class A Dependency ` Class C Class B Class A Injection Class C EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Different Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Different Java Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Spring Origin First version of Spring was first released on February 2003, By Rod Johnson. ` Spring has been hosted on SourceForge since January 2003. EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Spring History ` 4.2.0 4.3 0.9 2.0 2.5 3.0 3.1 4.0 1.0 2003 2004 2006 2009 2011 2013 2015 2016 2007 YEAR EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Definition Spring is a complete and a modular framework for developing enterprise applications in java. ` spring framework can be used for implementations a real time application spring can be used for the development particular layer of a real time application all layer for of EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Features Of Spring ` Avails array of resources Framework of Frameworks Comprehensive Tool Open Source Solves Problems Light Weight EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Uses Of Spring Over Other Frameworks ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Why Spring Is So Popular ? These 3 are basically the main reasons for its popularity. Lets now understand how they are exactly making it so SI M PL I C I T Y ` TE STA B L I T Y LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Simplicity Spring framework is simple because as it is non-invasive. It uses POJO and POJI SI M PL I C I T Y If a java class is not coupled with any technology (or) any framework then that java class is called “POJO” (plain old java class) ` TE STA B L I T Y public class MyClass { … … … } LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Simplicity If a java interface is not coupled with any technology (or) any frame work then such java interface is called “POJI” (plain old java interface) SI M PL I C I T Y ` TE STA B L I T Y public interface MyInterface { … … … } LO O SE CO UPL I N G EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Testablity Actually for writing the spring application, server [Container] is not mandatory because it has it own container to run the applications SI M PL I C I T Y Java POJO Classes ` TE STA B L I T Y MetaData Spring Container Final Result LO O SE CO UPL I N G Ready To Use Application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Loose Coupling Spring the core concept of spring framework objects are loosely coupled, this is SI M PL I C I T Y class Rider { Bike b; public void setBike(Bike b) { this.b = b; } Interface Bike { void start(); } ` TE STA B L I T Y void ride() { b.start(); } Honda Bajaj Yamaha } Classes LO O SE CO UPL I N G Spring container will inject either Honda object or Bajaj object or Yamaha object into the Rider class by calling setter method EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Spring Framework Ecosystem ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Spring Architecture ` EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Spring Modules o The Spring Framework contains a lot of features, which are well-organized in about twenty modules. o These modules can be grouped together based on their primary features into following: Core Container Data Access/Integration ` Web AOP (Aspect Oriented Programming) Instrumentation Test EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Modules-Core Container Core Beans Provide the fundamental parts of the framework Provides BeanFactory ` CoreContainer Context SpEL Provides a powerful expression language Supports internationalizatio n (I18N), EJB, JMS, Basic Remoting EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Modules-Data Access JDBC ORM Provides integration layers Provides a JDBC- abstraction layer ` DataAccess JMS OXM Transaction Supports programmatic and declarative transaction management Contains features for producing and consuming messages Provides an abstraction EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Modules-Web Web Web MVC Provides basic web-oriented integration features Contains Spring's Model-View- Controller (MVC) implementation ` Web Web Portlet Web Socket Provides the MVC implementation used in a portlet environment Provides support for WebSocket- based, two-way communication EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Modules-Miscellaneous AOP Instrumenting Provides class instrumentation support and class loader implementations Provides an aspect-oriented programming implementation ` Miscellaneous Messaging Aspects Test Provides support for STOMP as the WebSocket sub- protocol to use in applications Supports the testing of Spring components with JUnit or TestNG frameworks Provides integration with AspectJ EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Dependency Injection MVC AOP IoC
IoC Container Features Creating The Object Wiring Them Together ` Configuring Them Managing Their Complete Life Cycle EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
IoC Container Java POJO Classes MetaData The Spring IoC container by using Java POJO classes and configuration metadata produces a fully configured and application. Spring Container ` executable system or Final Result Ready To Use Application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
IoC Container Configured by loading the XML files or by detecting specific Java annotations on configuration classes. ` Two types of IoC containers : BeanFactory ApplicationContext EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Dependency Injection MVC IoC AOP
Dependency Injection Removes the dependency from the programming code ` Makes the Application easy to manage and test Makes our programming code loosely coupled EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Types Of Dependency Injection Spring framework avails two ways to inject dependency : 1 ` By Constructor The <constructor-arg> subelement of <bean> is used for constructor injection 2 The <property> subelement of <bean> is used for setter injection By Setter method EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Dependency Injection MVC IoC AOP
Aspect Oriented Programming 1 Providing modularity with aspect rather than class. 2 AOP breaks the program logic into distinct parts called concerns ` 3 Increases modularity by cross-cutting concerns 4 A cross-cutting concern is a concern which can affect the entire application EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Aspect Oriented Programming Crosscutting concern is applicable throughout the application and it affects the entire application modules Application ` Cross cutting concern Module 1 Module 3 Module 2 EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
MVC Dependency Injection IoC AOP
Model View Controller User input is interpreted by the controller and are transformed into a model which is represented to the user by the view. Browser Model ` Request Controller View Response User EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Summary Java Frameworks Spring Framework Why Spring Frameworks ? ` Spring Features Architecture Modules EDUREKA SPRING FRAMEWORK CERTIFICATION TRAINING https://www.edureka.co/spring-framework
Thank You … Questions/Queries/Feedback