Java converting to Jython-Getting a class object within itself
Posted
by
Bggreen
on Stack Overflow
See other posts from Stack Overflow
or by Bggreen
Published on 2012-05-31T16:10:02Z
Indexed on
2012/05/31
16:40 UTC
Read the original article
Hit count: 228
I am attempting to convert Java code to Jython and am using the apache Log and LogFactory imports. I am attempting to emulate Foo.class in Jython The chunk of code is as follows: in Java
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class MyClass {
private static final Log log = LogFactory.getLog(MyClass.class);
public MyClass(Document dom)
{ //code
}
How can I emulate this same behavior of MyClass.class in Jython/Python?
© Stack Overflow or respective owner