Re: expose custome object or function to script environement

2014-01-13 Thread A. Sundararajan
You could use any of the following options: 1) Write a Java object with bean-style getters and getters - which can be used by scripts 'as is'. This is the most direct and simple way. Users can use "new" to create objects and use "obj.prop" to access/write to bean-properties and call public Ja

expose custome object or function to script environement

2014-01-13 Thread buddhi mihara
hi, i am writing a server side js language just like node.jswhat is the proper way to expose custom object just like NativeMath or custom constructor function just like Native Date to the script environment thank you