public abstract class JDKHooks extends Object
Modifier | Constructor and Description |
---|---|
protected |
JDKHooks()
Hidden constructor, this class can't be directly instantiated.
|
Modifier and Type | Method and Description |
---|---|
static JDKHooks |
getJDKHooks()
Return singleton object representing JVM hooks/tools.
|
abstract Enumeration<URL> |
getResources(ClassLoader loader,
String resourceName)
Resolve resource with given names and make them available in
the returned iterator.
|
abstract ClassLoader |
getSystemClassLoader()
The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
abstract String |
getSystemProperty(String propName)
Get the system property
|
abstract ClassLoader |
getThreadContextClassLoader()
The thread context class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
protected JDKHooks()
public static final JDKHooks getJDKHooks()
JDKHooks
public abstract String getSystemProperty(String propName)
propName
- name of the propertypublic abstract ClassLoader getThreadContextClassLoader()
public abstract ClassLoader getSystemClassLoader()
public abstract Enumeration<URL> getResources(ClassLoader loader, String resourceName) throws IOException
loader
- The class loader used to resolve resourcesresourceName
- The resource name to resolveIOException
- if any error occurs while loading the resourceCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.