Re: Dynamic method invocation

2009-06-26 Thread jythonuser
Actually let me add that in jython I don't need to always use MyShell. It may be ok to wrapper it with some Jython class which then delegates to MyShell. So something like shell = MyJythonShell() shell.grep (grep_args) So MyJythonShell is defined in Jython which calls MyShell. Am wondering how

Re: Dynamic method invocation

2009-06-26 Thread jythonuser
Sorry for being a little vague. The last part of your response seems like what I would need. So here are more details on what I am trying to do. I have an extensible command shell in java where commmand providers plug in to supply new commands. I have a java class called MyShell which has execC

Re: Dynamic method invocation

2009-06-23 Thread Diez B. Roggisch
jythonuser schrieb: Hi I am new to jythong and was wondering if/how I can do the following - a) register a java object with a given name with jython interpreter using set method b) call methods on the java object - but the methods may not exist on the object, so I would like to call from jython

Dynamic method invocation

2009-06-23 Thread jythonuser
Hi I am new to jythong and was wondering if/how I can do the following - a) register a java object with a given name with jython interpreter using set method b) call methods on the java object - but the methods may not exist on the object, so I would like to call from jython a generic method that