Subj : Re: Using reflection with Rhino "beans" To : Ugo Cei From : Igor Bukanov Date : Fri Oct 01 2004 01:11 pm Ugo Cei wrote: > Thanks. Is it possible to do the equivalent of the followiing: > > >>var propertyInstance = new PropertyHello() >>var x = JavaAdapter(propertyInstance) > > > on the java side of things? If Scriptable scope is your scope then use: Context cx; .... Scriptable propertyInstance = cx.newObject(scope, "PropertyHello"); Object x = ScriptableObject.callMethod(scope, "JavaAdapter", new Object[] { propertyInstance }); Object realInstanceOfTheBean = ((Wrapper)wrap).unwrap(); Still I would suggest to consider to use JS all the way instaed. Regards, Igor .