From: Justin S. <ju...@ia...> - 2002-01-10 23:16:58
|
Hello, I am an experienced Python programmer, and I have written a few Java programs before. I am making my first foray into Jython now. I need to interact with an already-existing Java system. What would be best is if I could create the following: 1 - A module named "Spam" 2 - Containing a class definition for the class "Spam". 3 - Where the class exposes several public static methods. Obviously, (3) is the problem. Class static methods aren't really normal or usefully supported by Python. Is there some way that a Jython class can expose public static class methods to Java modules? Perhaps I should write the Python module and then write a Java adapter to provide the proper interface? I have searched the web and some of the archives, but did not see a definitive answer. If I looked in the wrong place, a pointer would be welcomed. Thanks. -Justin |