lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: subclassing Python classes in Java
Date Wed, 16 Feb 2011 18:18:15 GMT

On Feb 16, 2011, at 9:39, Bill Janssen <janssen@parc.com> wrote:

> How do I subclass a Python class in a JCC-wrapped Java module?

  - define a Java class with native methods
  - using the usual "extension" tricks have a Python class implement  
these native methods
  - define a subclass of that Java class so as to inherit these native  
implementations

Andi..

>
> In UpLib, I've got a class, uplib.ripper.Ripper, and I'd like to be  
> able
> to create a Java subclass for that in my module.  I presume I need a
> Java interface for that Python class, but how do I hook the two
> together so that the Java subclass can inherit from the Python class?
>
> Bill

Mime
View raw message