MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology

Spring Framework

Spring Projects

Spring Project 1

IOC Concept of Spring Framework
Previous Home Next

Introduction :The spring framework work the concept inversion of control , this concept provide the facility to create an object ,satisfied the dependency and lifecycle management. In the case of conventional approach creation of an object ,dependency satisfaction and lifecycle management all of these task are responsible for application developer.Problem associated with conventional usage of an object are:

  • An application developer need to focus on object creation ,dependency satisfaction and lifecycle management in addition to object usage.
  • Conventional method create tight coupling between object and there user. The tight coupling always create maintenance problem.
  • Conventional approach result in memory wastage because each user creates own object which prevent object reusability.

 

IOC propose the runtime environment called IOC container that should be used by the application developer to request object. If creation of an object their dependency satisfaction and lifecycle management is manage by IOC container then application developer can focus on used to object. Object can be shared among and loose coupling between object and user can be provided. Following two approach are used to provide the Implementation of IOC.

  1. Dependency Injection
  2. Dependency Lookup

Dependency Injection (DI):In case of DI (Dependency Injection) ,dependency of object are satisfied by IOC container on its own i.e IOC container are not ask to satisfied the dependency of an object.

Dependency Lookup (DL):In case of DL (Dependency Lookup) ,dependency of an object are satisfied only when IOC container is asked to do so.

Note: The spring framework does not support dependency lookup (DL) only support dependency injection (DI) approach.

Previous Home Next