rJava - how to call an abstract class method?

Posted by Sarah on Server Fault See other posts from Server Fault or by Sarah
Published on 2012-07-03T02:31:43Z Indexed on 2012/07/03 3:17 UTC
Read the original article Hit count: 426

Filed under:

I am trying to create an R function that taps into my JAVA code.

I have an abstract class, let's say StudentGroup, that has abstract methods, and one method "getAppropriateStudentGroup" which returns (based on config) a class which extends StudentGroup. This allows calling classes to behave the same regardless of which StudentGroups is actually appropriate.

1) How can I use rJava to call getAppropriateStudentGroup?

and 2) How can I call the methods on the returned class?

Thank you!

© Server Fault or respective owner

Related posts about java