org.jruby.runtime.load
Class CExtension

java.lang.Object
  extended by org.jruby.runtime.load.CExtension
All Implemented Interfaces:
Library

public class CExtension
extends java.lang.Object
implements Library

This class wraps the ModuleLoader for loading c-extensions in JRuby. Resources in the native file-system are loaded directly, extensions included in a Jar are extracted to java.io.tmpdir to allow the System to load them into the process space.


Constructor Summary
CExtension(LoadServiceResource resource)
           
 
Method Summary
 void load(Ruby runtime, boolean wrap)
          Try loading the found c-extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CExtension

public CExtension(LoadServiceResource resource)
Method Detail

load

public void load(Ruby runtime,
                 boolean wrap)
          throws java.io.IOException
Try loading the found c-extension. If the extension is contained in a Jar file, it will be extracted to the java.io.tmpdir

Specified by:
load in interface Library
Throws:
java.io.IOException


Copyright © 2002-2009 JRuby Team. All Rights Reserved.