JRuby.runtime.jruby_class_loader.add_url( java.net.URL.new( "file:my.jar" )$CLASSPATH << 'path/to/class/or/resources'require 'some.jar'load 'some.jar'require and load
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Logger | |
| private static final String | |
| private static volatile File | |
| private static String | |
| private Runnable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addURL(URL
the URL to be added to the search path of URLs url)Overrides java. Appends the specified URL to the list of URLs to search for classes and resources. |
| public void | close()
Overrides java. Implements java. Called when the parent runtime is torn down. |
| public synchronized Runnable | |
| public static synchronized File | |
| private static String | |
| private static String | |
| protected void |
| cachedJarPaths | back to summary |
|---|---|
| private final Map<String, URL> cachedJarPaths | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| TEMP_DIR_PREFIX | back to summary |
|---|---|
| private static final String TEMP_DIR_PREFIX | |
| tempDir | back to summary |
|---|---|
| private static volatile File tempDir | |
| tempDirName | back to summary |
|---|---|
| private static String tempDirName | |
| unloader | back to summary |
|---|---|
| private Runnable unloader | |
| JRubyClassLoader | back to summary |
|---|---|
| public JRubyClassLoader(ClassLoader parent) | |
| addURL | back to summary |
|---|---|
| public void addURL(URL url) Overrides java. Doc from java. Appends the specified URL to the list of URLs to search for classes and resources.
If the URL specified is | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Called when the parent runtime is torn down.
| |
| getJDBCDriverUnloader | back to summary |
|---|---|
| public synchronized Runnable getJDBCDriverUnloader()
Deprecated
| |
| getTempDir | back to summary |
|---|---|
| public static synchronized File getTempDir() | |
| tempDir | back to summary |
|---|---|
| private static String tempDir() | |
| tempDirName | back to summary |
|---|---|
| private static String tempDirName() | |
| terminateJarIndexCacheEntries | back to summary |
|---|---|
| protected void terminateJarIndexCacheEntries() | |