org.apache.commons.discovery.jdk

Class JDK12Hooks


public class JDK12Hooks
extends JDKHooks

Author:
Richard A. Sitze

Method Summary

Enumeration
getResources(ClassLoader loader, String resourceName)
Implement ClassLoader.getResources for JDK 1.2
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.
static void
setLog(Log _log)
Must be implemented to use DiscoveryLogFactory

Methods inherited from class org.apache.commons.discovery.jdk.JDKHooks

getJDKHooks, getResources, getSystemClassLoader, getSystemProperty, getThreadContextClassLoader

Method Details

getResources

public Enumeration getResources(ClassLoader loader,
                                String resourceName)
            throws IOException
Implement ClassLoader.getResources for JDK 1.2
Overrides:
getResources in interface JDKHooks

getSystemClassLoader

public ClassLoader getSystemClassLoader()
The system class loader is available for JDK 1.2 or later, if certain security conditions are met.
Overrides:
getSystemClassLoader in interface JDKHooks
Returns:
The system class loader, if available. Otherwise return null.

getSystemProperty

public String getSystemProperty(String propName)
Get the system property
Overrides:
getSystemProperty in interface JDKHooks
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.
Overrides:
getThreadContextClassLoader in interface JDKHooks
Returns:
The thread context class loader, if available. Otherwise return null.

setLog

public static void setLog(Log _log)
Must be implemented to use DiscoveryLogFactory

Copyright (c) 2002 - Apache Software Foundation