From: Leo User <leouser126@ya...> - 2006-12-07 16:07:25
Ive been looking at how to integrate new style classes
and interfaces and have had some success. Ive altered
PyType and PyObjectDerived so that they will be able
to mix with interfaces. PyType appears to be a matter
of altering the construction of the object.
PyObjectDerived Ive jerry-rigged so that it is an
InvocationHandler and it has a nice little Proxy
instance of all the interfaces it implements. An
overriden "__tojava__" returns the proxy if the Class
in question is an interface and the new style class is
supposed to implement it. The trick seems to work ok,
I haven't attached the invocation handler to any
invocations of the implemented interface methods but
Ill presume that its doable. What other issues
remain, don't know.
With that said, Im not sure of the approach. I would
prefer to not have to be so tricky to get things to
Need a quick answer? Get one in minutes from people who know.
Ask your question on http://www.Answers.yahoo.com
Get latest updates about Open Source Projects, Conferences and News.