Interpreter set() Question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Interpreter set() Question

Lalit Barik
According to the doc, Any object can be passed from java to scripting environment using set() method, Does that object has to be a serializable object ?

Thanks



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. <a href="http://ads.osdn.com/?ad_idt77&alloc_id492&op=click">http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: Interpreter set() Question

patniemeyer

On Jun 22, 2005, at 4:37 PM, Lalit Barik wrote:

> According to the doc, Any object can be passed from java to  
> scripting environment using set() method, Does that object has to  
> be a serializable object ?

No, it doesn't have to be serializeable.  The object remains the same  
object that is in your application... It's just a reference to it  
that you are really passing in.  So if you call methods on it or set  
variables those changes can be visible (and have their side effects)  
in your application.


Pat


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users