public class JDK11Hooks extends JDKHooks
Constructor and Description |
---|
JDK11Hooks() |
Modifier and Type | Method and Description |
---|---|
Enumeration<URL> |
getResources(ClassLoader loader,
String resourceName)
Resolve resource with given names and make them available in
the returned iterator.
|
ClassLoader |
getSystemClassLoader()
The system class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
String |
getSystemProperty(String propName)
Get the system property
|
ClassLoader |
getThreadContextClassLoader()
The thread context class loader is available for JDK 1.2
or later, if certain security conditions are met.
|
getJDKHooks
public String getSystemProperty(String propName)
getSystemProperty
in class JDKHooks
propName
- name of the propertypublic ClassLoader getThreadContextClassLoader()
getThreadContextClassLoader
in class JDKHooks
public ClassLoader getSystemClassLoader()
getSystemClassLoader
in class JDKHooks
public Enumeration<URL> getResources(ClassLoader loader, String resourceName) throws IOException
getResources
in class JDKHooks
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.