Dead
[official-gcc.git] / gomp-20050608-branch / libjava / gnu / gcj / runtime / ExtensionClassLoader.java
blob690143a437a69f936c6065ca919bba916f39a3b4
1 /* Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 /* Author: Kresten Krab Thorup <krab@gnu.org> */
11 package gnu.gcj.runtime;
13 import java.net.URL;
15 // The extension loader for libgcj. Class loader bootstrap is a bit
16 // tricky, see prims.cc and SystemClassLoader for some details.
17 public final class ExtensionClassLoader extends HelperClassLoader
19 private ExtensionClassLoader ()
23 private void init()
25 addDirectoriesFromProperty("java.ext.dirs");
28 // This can be package-private because we only call it from native
29 // code during startup.
30 static void initialize ()
32 instance.init();
33 system_instance.init();
36 // The only ExtensionClassLoader that can exist.
37 static ExtensionClassLoader instance = new ExtensionClassLoader();
38 // The system class loader.
39 static SystemClassLoader system_instance = new SystemClassLoader(instance);