jakarta-bsf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rony G. Flatscher" <Rony.Flatsc...@wu-wien.ac.at>
Subject Re: Can the implicit "bsf" variable be renamed ?
Date Tue, 30 May 2006 10:18:35 GMT
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


Mime
View raw message