Hi all,

I am working on wrapping a number of (java) interfaces as python classes
(through JCC).

Typically I have an "Interface" and make a class "PythonInterface", where I
take the methods and make public nativec mehtods of them. In some cases my
Interfaces has methods of same name but different parameters. What are the
best way to implement this, how does JCC behave in those cases, would both
"point" to the same python function. The alternative I have is to make
separate native functions and somehow separate the names of the similar
methods. Le me know if you have some expeience.

My second questions is on default implementation in interfaces. Some of the
default methods in the interface are unlikely to be needed to reimplement.
I have so far however put all methods as public native in the wrapping
class. It seems like it is possible to call the default code from python by
calling the interface directly "Interface.method(self, param)" and reducing
the effort needed on the python side. Any thoughts on this?

Thankful for any feedback,
Regards
/Petrus


-- 
_____________________________________________
Petrus Hyvönen, Uppsala, Sweden
Mobile Phone/SMS:+46 73 803 19 00

Reply via email to