org.apache.commons.discovery.jdk

Class JDK11Hooks

public class JDK11Hooks extends JDKHooks

Author: Richard A. Sitze

Method Summary
EnumerationgetResources(ClassLoader loader, String resourceName)
Implement ClassLoader.getResources for JDK 1.1 On JDK1.1 there is no getResources() method.
ClassLoadergetSystemClassLoader()
The system class loader is available for JDK 1.2 or later, if certain security conditions are met.
StringgetSystemProperty(String propName)
Get the system property
ClassLoadergetThreadContextClassLoader()
The thread context class loader is available for JDK 1.2 or later, if certain security conditions are met.

Method Detail

getResources

public Enumeration getResources(ClassLoader loader, String resourceName)
Implement ClassLoader.getResources for JDK 1.1 On JDK1.1 there is no getResources() method. We emulate this by using introspection and doing the lookup ourself, using the list of URLs, via getURLs().

getSystemClassLoader

public ClassLoader getSystemClassLoader()
The system class loader is available for JDK 1.2 or later, if certain security conditions are met.

Returns: The system class loader, if available. Otherwise return null.

getSystemProperty

public String getSystemProperty(String propName)
Get the system property

Parameters: propName name of the property

Returns: value of the property

getThreadContextClassLoader

public ClassLoader getThreadContextClassLoader()
The thread context class loader is available for JDK 1.2 or later, if certain security conditions are met.

Returns: The thread context class loader, if available. Otherwise return null.

Copyright (c) 2002 - Apache Software Foundation