org.apache.commons.discovery.jdk
Class JDKHooks
java.lang.Object
org.apache.commons.discovery.jdk.JDKHooks
public abstract class JDKHooks
extends java.lang.Object
- Richard A. Sitze
static JDKHooks | getJDKHooks() - Return singleton object representing JVM hooks/tools.
|
java.util.Enumeration | getResources(java.lang.ClassLoader loader, java.lang.String resourceName)
|
java.lang.ClassLoader | getSystemClassLoader() - The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
java.lang.ClassLoader | getThreadContextClassLoader() - The thread context class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
JDKHooks
protected JDKHooks()
getJDKHooks
public static final JDKHooks getJDKHooks()
Return singleton object representing JVM hooks/tools.
TODO: add logic to detect JDK level.
getResources
public java.util.Enumeration getResources(java.lang.ClassLoader loader,
java.lang.String resourceName)
getSystemClassLoader
public java.lang.ClassLoader getSystemClassLoader()
The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
- The system class loader, if available.
Otherwise return null.
getThreadContextClassLoader
public java.lang.ClassLoader getThreadContextClassLoader()
The thread context class loader is available for JDK 1.2
or later, if certain security conditions are met.
- The thread context class loader, if available.
Otherwise return null.
Copyright (c) 2002 - Apache Software Foundation