1 / 7

Spring Framework – Day 2

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?

lorene
Download Presentation

Spring Framework – Day 2

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spring Framework – Day 2 Presented By ParimalaAppLabs parimala.applabs@gmail.com

  2. Agenda • Quick recall of day 1 • Workspace setup checklist • HelloWorld program • Spring IoC • What is IoC • Spring BeanFactory Container • Spring ApplicationContext Container

  3. Workspace Setup • JDK Setup? • Eclipse Setup? • Jars Download? • Logging Jars • Spring Jars • Verify

  4. 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)

  5. 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

  6. 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

  7. 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

More Related