Prev | Current Page 229 | Next

Frank Zammetti

"Practical DWR 2 Projects"


CHAPTER 3 n ADVANCED DWR 117
Spring
As you may well know already, the Spring Framework (http://springframework.org) is a very
popular library that covers quite a bit of ground, but it started out (and became well known
for) one component in particular: its IoC container. If you??™ve ever heard the term Spring beans,
this is where it comes from: any Java object (bean) that Spring creates automatically and
injects into your classes is called a Spring bean.
Spring has actually expanded quite a bit since its early form and does a great deal more
now than just IoC, but for the sake of this discussion that??™s all we??™re really interested in. However,
it??™s certainly worth some of your time, in my opinion, to head on over to the Spring web
site and check out all it has to offer. In a nutshell, Spring is concerned with allowing you to
develop applications using POJOs (Plain Old Java Objects), as opposed to something like EJBs.
In the process, it hides much of the complexity of doing this from developers, letting them
focus squarely on the problems at hand.
Where DWR and Spring meet is in the ability of DWR to create beans via Spring and then
call methods on it. DWR provides the spring creator, which knows how to look up a given
bean in the beans.


Pages:
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241