spring framework day 2 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Spring Framework – Day 2 PowerPoint Presentation
Download Presentation
Spring Framework – Day 2

Loading in 2 Seconds...

play fullscreen
1 / 7

Spring Framework – Day 2 - PowerPoint PPT Presentation


  • 82 Views
  • Uploaded on

Spring Framework – Day 2. Presented By Parimala AppLabs parimala.applabs@gmail.com. Agenda. Quick recall of day 1 Workspace setup checklist HelloWorld program Spring IoC What is IoC Spring BeanFactory Container Spring ApplicationContext Container. Workspace Setup. JDK Setup?

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Spring Framework – Day 2' - lorene


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
spring framework day 2

Spring Framework – Day 2

Presented By

ParimalaAppLabs

parimala.applabs@gmail.com

agenda
Agenda
  • Quick recall of day 1
  • Workspace setup checklist
  • HelloWorld program
  • Spring IoC
      • What is IoC
      • Spring BeanFactory Container
      • Spring ApplicationContext Container
workspace setup
Workspace Setup
  • JDK Setup?
  • Eclipse Setup?
  • Jars Download?
      • Logging Jars
      • Spring Jars
  • Verify
helloworld program
HelloWorld Program
  • Step 1: New Java Project and External Jars
  • Step 2: Define Bean (HelloWorldBean)
  • Step 3: Define metadata
  • Step 4: Write Tester Class (HelloWorldBeanTester)
spring ioc
Spring IoC
  • Core of the Spring frame work
  • Inversion and Control
      • Don’t call me. I call you
  • Create objects, wire the dependency and manage the lifecycle
      • Dependency Injection
      • Meta Data definition
spring ioc container cont
Spring IoCContainer (cont.....)
  • BeanFactoryContainer.
          • Simple and light weight.
          • Implementation of BeanFractory Interface.
          • Implementations
              • Xml BeanFactory
  • ApplicationContentContainer
      • Can do all that of BeanFactory (sub class)
      • Adds enterprise capabilities
          • Resource bundle
          • Events propagation
applicationcontext container cntd
ApplicationContextContainer (cntd…)
  • Implementations(differ in the way metadata is loaded)
      • FileSystemXmlApplicationContext
          • Reads from the absolute path
      • ClassPathXmlApplicationcontext
          • Xml must be in the classpath
      • WebXmlApplicationContext
          • Gets Xml reference from web. xml
          • Works for web application only