BeanShell

From Wikipedia, the free encyclopedia
Jump to: navigation, search
BeanShell
Paradigm Object-oriented, scripting
Designed by JCP
First appeared 1999; 16 years ago (1999)
Stable release 1.3.0
Preview release 2.0b5
Typing discipline Dynamic, strong
Platform JVM
OS Cross-platform
License Apache License 2.0 / LGPL
Website www.beanshell.org
Influenced by
Java, JavaScript, Perl

BeanShell is a Java-like scripting language, invented by Patrick Niemeyer. It runs in the Java Runtime Environment (JRE) and uses a variation of the Java syntax, in addition to scripting commands and syntax.

Features[edit]

While BeanShell allows its users to define functions that can be called from within a script, its underpinning philosophy has been to not pollute its syntax with too many extensions and "syntactic sugar", thereby ensuring that code written for a Java compiler can almost always be executed interpretively by BeanShell without any changes and, almost just as much, vice versa. This makes BeanShell a popular testing and debugging tool for the JVM platform.

BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript.

BeanShell is an open source project and has been incorporated into many applications, such as Apache OpenOffice,[1] Apache Ant, WebLogic Server Application Server, jWork.ORG DataMelt, Apache JMeter,[2] jEdit, ImageJ,[3] JUMP GIS, Apache Taverna[4] and many others. BeanShell provides an easy to integrate API. It can also be run in command-line mode or within its own graphical environment.

History[edit]

The first versions of BeanShell (0.96, 1.0) were released by Patrick Niemeyer in 1999, followed by a series of versions. BeanShell 1.3.0 was released in August 2003. Version 2.0b1 was released in September 2003, culminating with version 2.0b4 in May 2005, which as of January 2015 is the newest release posted on the official webpage.[5]

BeanShell has been included in the Linux distribution Debian since 1999.[6]

BeanShell was undergoing standardization through the Java Community Process (JCP) under JSR 274.[7]

Following the JCP approval of the BeanShell JSR Review Ballot in June 2005, no visible activity was taking place around BeanShell.[8] The JSR 274 status is "Dormant".

A fork of BeanShell, BeanShell2, was created in May 2007 on the Google Code website.[9] The beanshell2 project has made a number of fixes and enhancements to BeanShell and multiple releases. As of January 2015, the latest version of beanshell2 is v2.1.8 released February 2014.

In December 2012, following a proposal to accept BeanShell as an Apache incubator project,[10] BeanShell was licensed to the Apache Software Foundation and migrated to the Apache Extras,[11] changing the license to Apache License 2.0. The project was accepted, and projected to become part of the Apache Commons.

Due to changes in the developers' personal circumstances, the BeanShell community did however not complete the move to Apache,[12] but remained at Apache Extras. The project has since released BeanShell 2.0b5,[13] which is used by Apache OpenOffice and Apache Taverna.

A Windows automated installer, BeanShell Double-Click,[14] was created in 2013. It includes desktop integration features.

See also[edit]

References[edit]

  1. ^ "Writing Scripts in BeanShell, JavaScript and Java". Apache OpenOffice. Apache Software Foundation. 2003-11-28. Retrieved 28 January 2015. 
  2. ^ "Component Reference: BeanShell Sampler". Apache JMeter User`s Manual. Apache Software Foundation. 2014-11-05. Retrieved 28 January 2015. 
  3. ^ "BeanShell Scripting". ImageJ wiki. 2014-07-17. Retrieved 28 January 2015. 
  4. ^ "Beanshell". Taverna User Manual. myGrid. 2014-09-04. Retrieved 28 January 2015. 
  5. ^ "BeanShell Downloads". beanshell.org. 2009-01-28. Retrieved 28 January 2015. 
  6. ^ "Source Package: bsh (2.0b4-12)". Debian. Retrieved 28 January 2015. 
  7. ^ The Java Community Process(SM) Program - JSRs: Java Specification Requests - detail JSR# 274. Jcp.org. Retrieved on 2013-07-21.
  8. ^ http://jcp.org/en/jsr/results?id=3208
  9. ^ beanshell2 - fork of BeanShell - Google Project Hosting. Code.google.com (2011-11-21). Retrieved on 2013-07-21.
  10. ^ Tripodi, S; Bazley, S (2012). "BeanShell proposal". Incubator Wiki. Apache Software Foundation. 
  11. ^ BeanShell project at Apache Extras
  12. ^ Tripodi, Simone (2015-01-08). "Beanshell under Apache?". Apache Taverna developer mailing list. Apache Software Foundation. Retrieved 28 January 2015. 
  13. ^ BeanShell 2.0b5
  14. ^ BeanShell Double-Click | Free Development software downloads at. Sourceforge.net. Retrieved on 2013-07-21.

External links[edit]