Link Details

Link 1022441 thumbnail
User 1071287 avatar

By dinesh.varyani
Published: Aug 30 2013 / 02:00

Program to demonstrate how AutoWiring works in Spring Framework. In the Spring Framework bean model, beans have relationships with other beans. In order to satisfy these dependencies of injecting one bean into another we use autowire functionality of Spring Framework. In this tutorial we are taking 6 scenarios by which Spring autowires one bean to another. The Scenarios are changed based on Spring Configuration files and rest all the source code given in this tutorial is the same. In order to run each scenario individually we just change Spring Configuration xml file and rest code remains the same. So for each scenario to run individual we need 1. Employee POJO class which has-a Address class object 2. Address POJO class which will be wired to Employee class through auto-wiring 3. Test class to test the application 4. Scenario based xml file provided below individually for each scenario
  • 9
  • 1
  • 998
  • 1006

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java