org.apache.commons.discovery.jdk
Class JDK12Hooks

java.lang.Object
  extended byorg.apache.commons.discovery.jdk.JDKHooks
      extended byorg.apache.commons.discovery.jdk.JDK12Hooks

public class JDK12Hooks
extends JDKHooks

Author:
Richard A. Sitze

Constructor Summary
JDK12Hooks()
           
 
Method Summary
 java.util.Enumeration getResources(java.lang.ClassLoader loader, java.lang.String resourceName)
          Implement ClassLoader.getResources for JDK 1.2
 java.lang.ClassLoader getSystemClassLoader()
          The system class loader is available for JDK 1.2 or later, if certain security conditions are met.
 java.lang.ClassLoader getThreadContextClassLoader()
          The thread context class loader is available for JDK 1.2 or later, if certain security conditions are met.
static void setLog(org.apache.commons.logging.Log _log)
          Must be implemented to use DiscoveryLogFactory
 
Methods inherited from class org.apache.commons.discovery.jdk.JDKHooks
getJDKHooks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDK12Hooks

public JDK12Hooks()
Method Detail

setLog

public static void setLog(org.apache.commons.logging.Log _log)
Must be implemented to use DiscoveryLogFactory


getThreadContextClassLoader

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

Specified by:
getThreadContextClassLoader in class JDKHooks
Returns:
The thread context class loader, if available. Otherwise return null.

getSystemClassLoader

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

Specified by:
getSystemClassLoader in class JDKHooks
Returns:
The system class loader, if available. Otherwise return null.

getResources

public java.util.Enumeration getResources(java.lang.ClassLoader loader,
                                          java.lang.String resourceName)
                                   throws java.io.IOException
Implement ClassLoader.getResources for JDK 1.2

Specified by:
getResources in class JDKHooks
Throws:
java.io.IOException


Copyright (c) 2002 - Apache Software Foundation