Spring
Introduction
Spring is an open-source application framework, introduced and developed in 2004. The main ideas were suggested by an experienced J2EE architect, Rod Johnson. Just as Hibernate attacks CMP as primitive ORM technology, Spring attacks EJB as unduly complicated and not susceptible to unit-testing. Instead of EJB, Spring suggests that we make use of ordinary Java beans, with some slight modifications, to get all the supposed advantages of EJB environment. Thus, Spring is posed as an alternative to EJB essentially. However, as a concession to the existing EJB investments, Spring is designed to operate with EJB if required.
Dependency Injection
Ein wesentliches Feature des Spring-Frmeworls ist die sogenannte Dependency Injection, bzw. Inversion of Controll. Hierbei handelt es sich um ein Design-Pattern, welches im Objektorientierten Umfeld im häufiger zum Einsatz kommt. Wesentliches Prinzip dieses Patterns ist die stärkere Trennung von Verknüpfungen zwischen Komponenten zu ermöglichen, ohne diese Verknüpfungen (Relationen) fest im Code zu integrieren.
Anstelle von festen Verknüpfungen werden diese Abhängigkeiten von anderen Komponten über Konfigurationsdateien realisiert. Im Rahmen von Spring kommt hier ein definiertes XML-Format zum Einsatz. Das Spring-Framework nutzt das Prinzip der Dependency Injection in großem Umfang.
Versions
Version 2.5
s. http://steelheart.kr/tc/163
Packaging
- spring.jar
- spring-webmvc.jar
Installation
- Downloaded spring-framework-2.5.1-with-dependencies.zip and spring-framework-2.5.1.zip (for a description s. readme.txt).
Deployment Structure
The directory 'dist' contains the Spring binary jar file spring.jar. The subdirectory 'modules' contains the module-specific jar files.
spring.jar
Convient jar file with all standard modules except the test and MVC support.
Projects
- springtest1
- springtest2