Spring basics for freshers

913 views

Published on

Spring Overview for Freshers who do not understand the ABC of Spring Framework..

Published in: Technology, Education
  • Be the first to comment

Spring basics for freshers

  1. 1. Spring Overview for Freshers Swati Bansal
  2. 2. SpringIntroduction to FrameworksWhat is Spring framework?Spring ArchitectureSpring ModulesWhy Use Spring? 2
  3. 3. What is a Framework?
  4. 4. How many times??????? Transaction Management Logging PersistenceSecurity Authentication Authorization
  5. 5. I HAVE DONE THAT BEFORE!!!!!! 5
  6. 6. A framework is an application or partial application…
  7. 7. Advantages of a Framework
  8. 8. Spring Framework is a Java platform that providescomprehensive infrastructure support for developing Java applications.
  9. 9. Spring Is Non Intrusive Modular 10
  10. 10. Spring Architecture
  11. 11. Core Package Most fundamental part of the framework. IoC and Dependency Injection features Factory pattern based Bean Factory.
  12. 12. DAO PackageThe DAO package provides a JDBC-abstraction layer that removes the need to do tedious JDBC coding and parsing of database-vendor specific error codes.
  13. 13. ORM Package  The ORM package provides integration layers for popular object- relational mapping APIs, including JPA, JDO, Hibernate, and iBatis.  Using the ORM package you can use all those O/R-mappers in combination with all the other features Spring
  14. 14. MVC Pattern
  15. 15. MVC Package Springs MVC package provides a Model-View- Controller (MVC) implementation for webapplications. Springs MVC framework is not just any old implementation; it provides a clean separation between domain model code and web forms, and allows you to use all the other features of the Spring Framework.
  16. 16. Aspect Oriented Programming
  17. 17. AOP Example
  18. 18. AOP PackageSprings AOP package provides an AOPAlliance-compliant aspect-oriented programmingimplementation allowing you to define, forexample, method-interceptors and pointcuts tocleanly decouple code implementingfunctionality that should logically speaking beseparated.
  19. 19. A Typical Spring Application
  20. 20. Why UseSpring Framework?
  21. 21. Why use Spring? Wiring of components through Dependency Injection – Promotes de-coupling among the parts that make the application Design to interfaces – Insulates a user of a functionality from implementation details Test-Driven Development (TDD) – POJO classes can be tested without being tied up with the framework
  22. 22. Why use Spring? Declarative programming through AOP – Easily configured aspects, esp. transaction support Popular technologies – Abstractions insulate application from specifics, eliminate redundant code – EJB for J2EE - Hibernate, iBatis, JDBC (for data access) - Velocity (for presentation) - Struts and WebWork (For web) Not an all-or-nothing solution – Extremely modular and flexible Well designed – Easy to extend – Many reusable classes
  23. 23. Thank You! 26

×