Best Java Learning Kit Wrox Book All Software Code Development' title='Best Java Learning Kit Wrox Book All Software Code Development' />Introduction to the Spring Framework.Since the first version of this article was published in October, 2.Spring Framework has steadily grown in popularity.It has progressed through version 1.In this article, Ill try to explain what Spring sets out to achieve, and how I believe it can help you to develop J2.EE applications. Yet another framework You may be thinking not another framework.Why should you read this article, or download the Spring Framework if you havent already, when there are so many J2.EE frameworks, or when you could build your own frameworkThe sustained high level of interest in the community is one indication that Spring must offer something valuable there are also numerous technical reasons.I believe that Spring is unique, for several reasons It addresses important areas that many other popular frameworks dont.Spring focuses around providing a way to manage your business objects.Spring is both comprehensive and modular.Spring has a layered architecture, meaning that you can choose to use just about any part of it in isolation, yet its architecture is internally consistent.So you get maximum value from your learning curve.You might choose to use Spring only to simplify use of JDBC, for example, or you might choose to use Spring to manage all your business objects.And its easy to introduce Spring incrementally into existing projects.Spring is designed from the ground up to help you write code thats easy to test.Spring is an ideal framework for test driven projects.Android-Programming-Pushing-the-Limits.jpg' alt='Best Java Learning Kit Wrox Book All Software Code Development' title='Best Java Learning Kit Wrox Book All Software Code Development' />20142 201312.Best Java Learning Kit Wrox Book All Software Code Development' title='Best Java Learning Kit Wrox Book All Software Code Development' />Spring is an increasingly important integration technology, its role recognized by several large vendors.Spring is not necessarily one more framework dependency for your project.Spring is potentially a one stop shop, addressing most infrastructure concerns of typical applications.It also goes places other frameworks dont.An open source project since February 2.El centro ofrece, a lo largo de todo el ao, cursos y programas variados de enseanza y perfeccionamiento de hasta nueve idiomas.PowerShell including Windows PowerShell and PowerShell Core is a task automation and configuration management framework from Microsoft, consisting of a commandline.Spring has a long heritage.The open source project started from infrastructure code published with my book, Expert One on One J2.EE Design and Development, in late 2.Expert One on One J2.EE laid out the basic architectural thinking behind Spring.However, the architectural concepts go back to early 2.Since January 2. 00.Spring has been hosted on Source.Forge. There are now 2.Spring development and support. Texas Appliance Installer License Test . The flourishing open source community has helped it evolve into far more than could have been achieved by any individual.Architectural benefits of Spring.Before we get down to specifics, lets look at some of the benefits Spring can bring to a project Spring can effectively organize your middle tier objects, whether or not you choose to use EJB.Spring takes care of plumbing that would be left up to you if you use only Struts or other frameworks geared to particular J2.EE APIs. And while it is perhaps most valuable in the middle tier, Springs configuration management services can be used in any architectural layer, in whatever runtime environment.Spring can eliminate the proliferation of Singletons seen on many projects.In my experience, this is a major problem, reducing testability and object orientation.Spring can eliminate the need to use a variety of custom properties file formats, by handling configuration in a consistent way throughout applications and projects.Ever wondered what magic property keys or system properties a particular class looks for, and had to read the Javadoc or even source code With Spring you simply look at the classs Java.Bean properties or constructor arguments.The use of Inversion of Control and Dependency Injection discussed below helps achieve this simplification.Spring can facilitate good programming practice by reducing the cost of programming to interfaces, rather than classes, almost to zero.Spring is designed so that applications built with it depend on as few of its APIs as possible.Most business objects in Spring applications have no dependency on Spring.Applications built using Spring are very easy to unit test.Spring can make the use of EJB an implementation choice, rather than the determinant of application architecture.You can choose to implement business interfaces as POJOs or local EJBs without affecting calling code.Spring helps you solve many problems without using EJB.Spring can provide an alternative to EJB thats appropriate for many applications.For example, Spring can use AOP to deliver declarative transaction management without using an EJB container even without a JTA implementation, if you only need to work with a single database.Spring provides a consistent framework for data access, whether using JDBC or an OR mapping product such as Top.Link, Hibernate or a JDO implementation.Spring provides a consistent, simple programming model in many areas, making it an ideal architectural glue.You can see this consistency in the Spring approach to JDBC, JMS, Java.Mail, JNDI and many other important APIs.Spring is essentially a technology dedicated to enabling you to build applications using POJOs.This desirable goal requires a sophisticated framework, which conceals much complexity from the developer.Thus Spring really can enable you to implement the simplest possible solution to your problems.And thats worth a lot.What does Spring do Spring provides a lot of functionality, so Ill quickly review each major area in turn.Mission statement.Firstly, lets be clear on Springs scope.Although Spring covers a lot of ground, we have a clear vision as to what it should and shouldnt address.Springs main aim is to make J2.EE easier to use and promote good programming practice.It does this by enabling a POJO based programming model that is applicable in a wide range of environments.Spring does not reinvent the wheel.Thus youll find no logging packages in Spring, no connection pools, no distributed transaction coordinator.All these things are provided by open source projects such as Commons Logging, which we use for all our log output, or Commons DBCP, or by your application server.For the same reason, we dont provide an OR mapping layer.There are good solutions to this problem such as Top.Link, Hibernate and JDO.Spring does aim to make existing technologies easier to use.For example, although we are not in the business of low level transaction coordination, we do provide an abstraction layer over JTA or any other transaction strategy.Spring doesnt directly compete with other open source projects unless we feel we can provide something new.For example, like many developers, we have never been happy with Struts, and felt that there was room for improvement in MVC web frameworks.With Spring MVC adoption growing rapidly, it seems that many agree with us.In some areas, such as its lightweight Io.C container and AOP framework, Spring does have direct competition, but Spring was a pioneer in those areas.Spring benefits from internal consistency.All the developers are singing from the same hymn sheet, the fundamental ideas remaining faithful to those of Expert One on One J2.EE Design and Development.And weve been able to use some central concepts, such as Inversion of Control, across multiple areas.Spring is portable between application servers.Of course ensuring portability is always a challenge, but we avoid anything platform specific or non standard in the developers view, and support users on Web.Logic, Tomcat, Resin, JBoss, Jetty, Geronimo, Web.Sphere and other application servers.Springs non invasive, POJO, approach enables us to take advantage of environment specific features without sacrificing portability, as in the case of enhanced Web.Logic transaction management functionality in Spring 1.BEA proprietary APIs under the covers.Inversion of control container.The core of Spring is the org.Java. Beans. This package typically isnt used directly by users, but underpins much Spring functionality.The next higher layer of abstraction is the bean factory.A Spring bean factory is a generic factory that enables objects to be retrieved by name, and which can manage relationships between objects.Bean factories support two modes of object Singleton in this case, theres one shared instance of the object with a particular name, which will be retrieved on lookup.This is the default, and most often used, mode.Its ideal for stateless service objects.Prototype or non singleton in this case, each retrieval will result in the creation of an independent object.Programming Language Mentor of your Computer by Manthan Dave.Programming Language Mentor of your Computer Published on Sep 1, 2.This book gives you everything you need to know about programming languages.From classification and history, to controversies this book con.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |