From: rohit s. <ro2...@ya...> - 2001-10-09 12:18:17
|
Hi, I am using a Java application. Now I want to convert some of the java classes to jython. I want to do it at the minimum possible level. I mean that I want to do the least possible changes in my existing code. But I dont know how to build up that abstraction so that my existing code does not need to know if I am using A.class or A.py. Like, for example, say there are classes A, B, C, D, E and I add instances of A-E to a vector. v.addElement(new A())etc... also I am accessing some method of class A at some point...say a=new A() a.methodCall() Now if I am implementing classes A-E in Jython, then how can I neatly maintain the same code. Can I still do v.addElement(A()) and still call some method of A.py in my code without doing much changes? Pl extend yr valuable help!!!! Rohit __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |