From: Patrick Niemeyer <pat@pa...> - 2005-06-22 23:39:39
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.