Top Description Fields Constructors Methods
org.jruby.util

public Class JRubyClassLoader

extends ClassDefiningJRubyClassLoader
Class Inheritance
Known Direct Subclasses
org.jruby.util.SelfFirstJRubyClassLoader
Imports
java.io.BufferedInputStream, .BufferedOutputStream, .ByteArrayOutputStream, .File, .FileOutputStream, .IOException, .InputStream, .OutputStream, java.lang.management.ManagementFactory, java.net.JarURLConnection, .URL, .URLConnection, java.util.ArrayList, .Collections, .List, .Map, java.util.concurrent.ConcurrentHashMap, java.util.jar.JarFile, org.jruby.util.cli.Options, org.jruby.util.log.Logger, .LoggerFactory

this classloader will be populated dynamically in the following ways: so it is the classloader for ALL the jars used by gems. and this classlaoder is "implicit" part of the $LOAD_PATH of the jruby runtime all ruby resources inside any of the added jars will be found via require and load

Field Summary

Modifier and TypeField and Description
private final Map<String, URL>
private static final Logger
private static final String
private static volatile File
private static String
private Runnable
Inherited from org.jruby.util.ClassDefiningJRubyClassLoader:
DEFAULT_DOMAIN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addURL(URL
the URL to be added to the search path of URLs
url
)

Overrides java.net.URLClassLoader.addURL.

Appends the specified URL to the list of URLs to search for classes and resources.

public void
close()

Overrides java.net.URLClassLoader.close.

Implements java.io.Closeable.close.

Called when the parent runtime is torn down.

public synchronized Runnable
getJDBCDriverUnloader()
Deprecated

public static synchronized File
private static String
private static String
protected void
Inherited from org.jruby.util.ClassDefiningJRubyClassLoader:
defineClassdefineClasshasClasshasDefinedClass

Field Detail

cachedJarPathsback to summary
private final Map<String, URL> cachedJarPaths
LOGback to summary
private static final Logger LOG
TEMP_DIR_PREFIXback to summary
private static final String TEMP_DIR_PREFIX
tempDirback to summary
private static volatile File tempDir
tempDirNameback to summary
private static String tempDirName
unloaderback to summary
private Runnable unloader

Constructor Detail

JRubyClassLoaderback to summary
public JRubyClassLoader(ClassLoader parent)

Method Detail

addURLback to summary
public void addURL(URL url)

Overrides java.net.URLClassLoader.addURL.

Doc from java.net.URLClassLoader.addURL.

Appends the specified URL to the list of URLs to search for classes and resources.

If the URL specified is null or is already in the list of URLs, or if this loader is closed, then invoking this method has no effect.

Parameters
url:URL

the URL to be added to the search path of URLs

Annotations
@Override
closeback to summary
public void close()

Overrides java.net.URLClassLoader.close.

Implements java.io.Closeable.close.

Called when the parent runtime is torn down.

Annotations
@Override
getJDBCDriverUnloaderback to summary
public synchronized Runnable getJDBCDriverUnloader()

Deprecated

Annotations
@Deprecated
getTempDirback to summary
public static synchronized File getTempDir()
tempDirback to summary
private static String tempDir()
tempDirNameback to summary
private static String tempDirName()
terminateJarIndexCacheEntriesback to summary
protected void terminateJarIndexCacheEntries()