You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-user@jakarta.apache.org by Dmitry Goldenberg <dm...@weblayers.com> on 2006/05/24 22:15:36 UTC
Can the implicit "bsf" variable be renamed ?
Folks,
Is there any way to rename the implicit 'bsf' variable available to the bsf script authors?
Also, is there a summary of all the methods (besides lookupBean) available on it?
How does one go about adding new methods on the bsf object - is that even an option?
Thanks,
- Dmitry
Re: Can the implicit "bsf" variable be renamed ?
Posted by "Rony G. Flatscher" <Ro...@wu-wien.ac.at>.
Hi Dimitry,
> Is there any way to rename the implicit 'bsf' variable available to the bsf script authors?
>
Yes. What language? If JavaScript, then lookup
org.apache.bsf.engines.javascript.initialize(...) ...
> Also, is there a summary of all the methods (besides lookupBean) available on it?
>
What do you mean by that (you should have all the BSFEngine methods
available)?
> How does one go about adding new methods on the bsf object - is that even an option?
>
What would you like to achieve?
In principle: you can add whatever you wish. Just extend the current
implementation of the scripting engine you use and add addtional methods
there. You need to look up the source code of "your" BSF engine to learn
about it.
Hope that helps,
---rony
---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org