Chapter24.Dynamic language support

24.1.Introduction

Spring 2.0 introduces comprehensive support for using classes and objects that have
been defined using a dynamic language (such as JRuby) with Spring.

This support allows you to write any number of classes in a supported dynamic
language, and have the Spring container transparently instantiate, configure
and dependency inject the resulting objects.

The dynamic languages currently supported are:

  • JRuby

  • Groovy

  • BeanShell

Fully working examples of where this dynamic language support can be immediately useful
are described in the section entitled Section24.4, “Scenarios”.

Please note that the dynamic language support detailed in this chapter is
only available in Spring versions 2.0 and above. Currently
there are no plans to backport the dynamic language
support to previous versions of Spring (most notably the 1.2.x line).

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。