public class JDK11Hooks extends JDKHooks
Modifier and Type | Field and Description |
---|---|
private static java.lang.ClassLoader |
systemClassLoader |
Constructor and Description |
---|
JDK11Hooks() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.ClassLoader |
getSystemClassLoader()
The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
java.lang.String |
getSystemProperty(java.lang.String propName)
Get the system property
|
java.lang.ClassLoader |
getThreadContextClassLoader()
The thread context class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
getJDKHooks
public java.lang.String getSystemProperty(java.lang.String propName)
getSystemProperty
in class JDKHooks
propName
- name of the propertypublic java.lang.ClassLoader getThreadContextClassLoader()
getThreadContextClassLoader
in class JDKHooks
public java.lang.ClassLoader getSystemClassLoader()
getSystemClassLoader
in class JDKHooks
public java.util.Enumeration<java.net.URL> getResources(java.lang.ClassLoader loader, java.lang.String resourceName) throws java.io.IOException
getResources
in class JDKHooks
loader
- The class loader used to resolve resourcesresourceName
- The resource name to resolvejava.io.IOException
- if any error occurs while loading the resource