For anyone who’s read my books or considered the design of Spring, the interface part is hardly a surprise. It plays on both the OO concept of an interface (for which I’ve always had a deep love) and the notion of the interface to a system. For example, putting a web interface onto an existing green screen system–something I was actually doing when I first thought of the company name.
The Spring Blog
I was on site at a customer last week and a question came from the crowd, “Why isn’t getConfigLocations() abstract anymore?” After working in front of customers for a while, it becomes rare that you’re speechless, and yet I was. To be honest, my first thought was that there was no way the customer could be right. But lo and behold, in revision 1.3 of AbstractSingleSpringContextTests it clearly states that getConfigLocations() is no longer abstract. I hadn’t created any new integration tests against 2.0.1, so I hadn’t even seen the change.
These shots of our venue were taken yesterday (proximity to places like this is one of the perks of Interface21 having an office in Florida).
We are incorporating several of these shots into the main conference banners to be draped from the towering ceilings of the Diplomat. Everything is set for a great show. See you at The Spring Experience next week!
Thanks to our philosophy of pluggability and a lot of hard work in the implementation, the Spring IoC container (like most of the rest of Spring) is extremely flexible.
One point that is often missed is that Spring configuration need not be in XML, although the XML format is by far the most commonly used. Spring has its own internal metadata format in the form of the BeanDefinition interface and subinterfaces. The BeanFactory and ApplicationContext implementations that represent IoC container instances are powered by this Java metadata, and are quite separate from metadata parsing, which is normally performed by BeanDefinitionReader implementations.
In the run up to The Spring Experience I’ve been busy but I’ve noticed that Rod’s been really active on the blogging front. So in some spare time in airports and on planes today, I’ve decided to do a little blogging.
One of the biggest balancing acts that we in the Spring community have is to make sure that we stay backwards compatible while still innovating. Part of that innovation is taking advantage of new features and constructs in later versions of Java such as Java 5. Since the 1.2.x branch, we’ve seen some of this with things like the @Transactional annotation and our JMX auto-detection based on the @ManagedResource annotation. In the end these are great features and have greatly simplified development (at least mine anyway), but they really amount to moving metadata into the code. What we hadn’t seen was the actual simplification of APIs.
If you’ve followed October’s Spring 2.0 release, you will know that one of the big new features was XML extension name spaces: the ability to define new XML elements and attributes that generate Spring metadata, and can be used alongside regular bean definitions. This provides a valuable new extension point and makes Spring configuration both more simpler to use for many repeated tasks and more powerful.
However, there is also a sweet little piece of syntax sugar that you may not have noticed–probably because no one in the Spring team has gotten around to telling you… Having promised myself for a while that I was going to do a code-centered blog next, here goes.
Dear Spring community,
We are pleased to announce that Spring 2.0.1 has been released. Download | Docs | Changelog.
This is the first maintenance release for Spring 2.0, including fixes for most bugs that have been reported since 2.0 final as well as many minor enhancements. This release also introduces OpenJPA support and GlassFish weaving support. Furthmermore, it features redesigned AspectJ support internals and an improved bean definition tooling SPI.
As always, please see the changelog for the details.
Dear Spring Community,
We are pleased to announce that Spring LDAP version 1.1.1 has been released. This is an update release that adds several new features and fixes a few problems that were in 1.1. Download | ChangeLog | Documentation | API
A summary of the more important changes:
- Added capability to use server-side controls in search.
- DirContextAdapter.getNameInNamespace() now returns the full DN.
- DistinguishedName now supports multi-valued RDNs separated by a ‘+’ sign, like "cn=Rod+sn=Johnson", for example.
- Added lookup methods that take an array of return attribute names.
- Upgraded Spring to 2.0 internally. Spring 1.2.8 is still supported.
I am regularly asked about the origin of the name “Spring.”
The name goes back to late 2002. In November 2002, I published Expert One-on-One J2EE Design and Development. The book was accompanied by 30,000 lines of framework code, which had accounted for a good deal of the year full-time I put into writing the book. (Writing a 750 page book is enough work on its own; writing a substantial framework to go along with it is sheer masochism. It was hard.) Many of the fundamental concepts of the Spring Framework were there: an already capable IoC container, with BeanFactory and ApplicationContext and sophisticated Dependency Injection (although that name was not coined until late 2003); an early form of what become Spring MVC with Controller, HandlerMapping and friends; the template concept; JdbcTemplate and the concept of technology-agnostic data access exceptionsâ¦
If you’re reading this blog, chances are that you already know Spring is a pretty popular framework. Most J2EE developers who’ve ever used it simply love it, as illustrated by 12+ books, 1,000,000+ downloads, 14,000+ forum members etc. Still, even I was surprised when my Australian Spring user group announcement a little over a week ago generated this much interest… As of today, we’ve had over five hundred registrations to attend these three meetings. Indeed, we’ve needed to move the Sydney meeting to larger premises, with the Brisbane and Melbourne meetings almost booked out. If you’re located in Australia and would like to come along, I’d encourage you to register ASAP to avoid disappointment (don’t forget to also subscribe to Australasia Spring Interest to hear about future events).