Spring Helloworld Refactoring
Spring Framework: Refactoring Helloworld Application (Why DI is useful?)
- How a simple HelloWorld application can be refactored in order to achieve the agility (and testability)?
- How can I change a certain part of an application without affecting other parts of the code? (maintainability)
- How can I wire different parts of the application without writing a lot of glue code myself? (productivity)
- How can I test the business logic without being tied up with a particular framework? (testability)
- Dependency Injection (DI) helps in these regards
Refactoring HelloWorld Application
- HelloWorld
- HelloWorld with command line arguments
- HelloWorld with decoupling without using Interface
- HelloWorld with decoupling using Interface
- HelloWorld with decoupling through Factory
- HelloWorld using Spring framework as a factory class but not using DI (Dependency Injection)
- HelloWorld using Spring framework's DI
- HelloWorld using Spring framework's DI and XML configuration file
- HelloWorld using Spring framework's DI and XML configuration file with constructor argument
- HelloWorld using @Autowired annotation
- HelloWorld using auto-scanning (component-scanning) in XML
- HelloWorld using auto-scanning (component-canning) in Java
Download course content