org.apache.commons.discovery.jdk
public abstract class JDKHooks extends java.lang.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 java.util.Enumeration<java.net.URL> |
getResources(java.lang.ClassLoader loader,
java.lang.String resourceName)
Resolve resource with given names and make them available in
the returned iterator.
|
abstract java.lang.ClassLoader |
getSystemClassLoader()
The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
abstract java.lang.String |
getSystemProperty(java.lang.String propName)
Get the system property
|
abstract java.lang.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 java.lang.String getSystemProperty(java.lang.String propName)
propName
- name of the propertypublic abstract java.lang.ClassLoader getThreadContextClassLoader()
public abstract java.lang.ClassLoader getSystemClassLoader()
public abstract java.util.Enumeration<java.net.URL> getResources(java.lang.ClassLoader loader, java.lang.String resourceName) throws java.io.IOException
loader
- The class loader used to resolve resourcesresourceName
- The resource name to resolvejava.io.IOException
- if any error occurs while loading the resourceCopyright © 2002-2014. All Rights Reserved.