| setJavaHandler {Java} | R Documentation |
Registers a manager for R objects that are to be used by foreign systems such as Omegahat and Java. The registration provides access to the object from C routines that bridge the two systems - R and the foreign one.
setJavaHandler(handler)
This registers the handler object with the C code so that it is known to the Java methods. The methods that must be provided are
handler()createReference()foreignReference
object by calling
the foreignReference
function.
addReferenceremovegetReferencereferencestotalThe intent of the handler is to allow the management of the objects being exported to the foreign system(s) (Java and Omegahat)
The previous value of the registered handler that has been replaced with this value. This allows one to temporarily replace a handler with a new version and then swap the original back at the end of an operation/transaction.
Duncan Temple Lang
http://www.omegahat.org/RSJava/Conversion.html
old <- setJavaHandler(javaHandlerGenerator())
..
setJavaHandler(old)