blob: 690143a437a69f936c6065ca919bba916f39a3b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
/* Author: Kresten Krab Thorup <krab@gnu.org> */
package gnu.gcj.runtime;
import java.net.URL;
// The extension loader for libgcj. Class loader bootstrap is a bit
// tricky, see prims.cc and SystemClassLoader for some details.
public final class ExtensionClassLoader extends HelperClassLoader
{
private ExtensionClassLoader ()
{
}
private void init()
{
addDirectoriesFromProperty("java.ext.dirs");
}
// This can be package-private because we only call it from native
// code during startup.
static void initialize ()
{
instance.init();
system_instance.init();
}
// The only ExtensionClassLoader that can exist.
static ExtensionClassLoader instance = new ExtensionClassLoader();
// The system class loader.
static SystemClassLoader system_instance = new SystemClassLoader(instance);
}
|