Return-Path: Delivered-To: apmail-jakarta-bsf-dev-archive@www.apache.org Received: (qmail 21810 invoked from network); 20 May 2008 10:48:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 10:48:56 -0000 Received: (qmail 43074 invoked by uid 500); 20 May 2008 10:48:57 -0000 Delivered-To: apmail-jakarta-bsf-dev-archive@jakarta.apache.org Received: (qmail 43040 invoked by uid 500); 20 May 2008 10:48:57 -0000 Mailing-List: contact bsf-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Bean Scripting Framework developers" Reply-To: "Bean Scripting Framework developers" Delivered-To: mailing list bsf-dev@jakarta.apache.org Received: (qmail 43021 invoked by uid 99); 20 May 2008 10:48:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 03:48:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 74.125.46.28 as permitted sender) Received: from [74.125.46.28] (HELO yw-out-2324.google.com) (74.125.46.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 10:48:11 +0000 Received: by yw-out-2324.google.com with SMTP id 9so1277386ywe.13 for ; Tue, 20 May 2008 03:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=bqOCBirCyAxyU0htemcC+xW0h2rtyaWH8KQFkTuhdpk=; b=V7zAj+hIO3lzr1no37dGehJbnZj5nIej/dsmzZgidk1BR1zDMaG/Mvd1YfKHm19j9+Fgo6pVvyGfNUaAGh4rRoT10hs//VtLgf451m3tw1bVYvlbkx45kUSJntpV7whRKhj/kyqd2/pN3VvAzjr2DAnveuHVuhsj646/9q/2zgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FxehML9jtWc5nDjnrZOejQhz8G0Fy11Rtq4t7GYl2dRggSa1yzca4Ncp3MfyFR7B3698zMetR/BvSPy4EsVExUxl4Dn+klLbManmtWWxMaY87mm885pVunyu0XVWzO6nQexDwEHYlAr3V/D4a+wHwGePCTrXtQaJz5e+oMyOVn4= Received: by 10.150.92.12 with SMTP id p12mr7315395ybb.238.1211280502539; Tue, 20 May 2008 03:48:22 -0700 (PDT) Received: by 10.150.91.10 with HTTP; Tue, 20 May 2008 03:48:22 -0700 (PDT) Message-ID: <25aac9fc0805200348v22339c38g940f1a5104d00946@mail.gmail.com> Date: Tue, 20 May 2008 11:48:22 +0100 From: sebb To: "Bean Scripting Framework developers" Subject: Re: How about a static "getRegisteredEngines()" ? ( Re: JEXL engine In-Reply-To: <48327D39.3060201@wu-wien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <482B653E.6040509@wu-wien.ac.at> <4831C81D.4080804@wu-wien.ac.at> <4831D75B.1000107@wu-wien.ac.at> <25aac9fc0805191436j79cd2470r927522488f40fc76@mail.gmail.com> <48327D39.3060201@wu-wien.ac.at> X-Virus-Checked: Checked by ClamAV on apache.org On 20/05/2008, Rony G. Flatscher wrote: > Hi Sebb, > > > > > > > Sebb - Would it help JMeter to have this? If so, can you please add ;-) > > > > > > > > > > I can't at present think of a reason why JMeter would need the version > > at run-time, because we bundle a known version. > > > > But it might well be useful for other applications, e.g. web applications. > > > > > From experience such metadata is not needed every day (like true > mutliple-inheritance etc.), but if you run into a need for it then the > availability appears to be just God sent! > > > > However, it would be nice for JMeter if BSF made it easy to retrieve > > the list of registered languages ;-) > > > > > That's an interesting suggestion. Currently, BSFManager employs a HashTable > of registered engines (langName->classNameOfEngine) which could be made > available via a static "getRegisteredEngines()" accessor method. Would that > help solve your use case? > Yes - at present JMeter has to read the properties file and keep track of others it may add itself (only Jexl so far) so they can be displayed in the GUI. I'll do a JIRA for the enhancement. > Would anyone object to add that static method to BSFManager? > > Any other suggestions/ideas/requests? > [I would like to work a bit on the code this coming weekend, mainly to > incorporate the Jira issues/requests, but then it would be also possible to > add the one or other useful functionality.] > > ---rony > > P.S.: Personally, I would like to incorporate ant's nice class that > incorporates all JSR-223/Java6/BSF3 scripting engines into BSF2.4, cf. > > using the org.apache.bsf package name. > > P.P.S.: In addition, I have been thinking of another idea which would allow > JSR-223/Java6/BSF3 to employ BSF2.4 scripting languages, distributed with > BSF2.4. > > --------------------------------------------------------------------- To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: bsf-dev-help@jakarta.apache.org