CHAPTER 14

image

Using Dynamic Languages

Often you are required to do some business logic as fast as possible, such as a prototype that needs to work or a quick security authorization check or calculating some hash. In this chapter, you are going to see how the use of dynamic languages together with the Spring Framework can help you to do such tasks.

Get More Dynamic

The Spring Framework supports Groovy, JRuby, and BeanShell dynamic languages and you can interact with them like any other bean defined in the container. Remember the Login interface and Login implementation? Let’s review them. See Listings 14-1 and 14-2.

Listing 14-1. Login.java

package ...

Get Introducing Spring Framework: A Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.