org.apache.commons.discovery.jdk
Class JDK11Hooks

java.lang.Object
  extended by org.apache.commons.discovery.jdk.JDKHooks
      extended by org.apache.commons.discovery.jdk.JDK11Hooks

public class JDK11Hooks
extends JDKHooks

JDK 1.1 Style Hooks implementation.


Constructor Summary
JDK11Hooks()
           
 
Method Summary
 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.
 
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

JDK11Hooks

public JDK11Hooks()
Method Detail

getSystemProperty

public java.lang.String getSystemProperty(java.lang.String propName)
Get the system property

Specified by:
getSystemProperty in class JDKHooks
Parameters:
propName - name of the property
Returns:
value of the property

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<java.net.URL> getResources(java.lang.ClassLoader loader,
                                                        java.lang.String resourceName)
                                                 throws java.io.IOException
Resolve resource with given names and make them available in the returned iterator.

Specified by:
getResources in class JDKHooks
Parameters:
loader - The class loader used to resolve resources
resourceName - The resource name to resolve
Returns:
The iterator over the URL resolved resources
Throws:
java.io.IOException - if any error occurs while loading the resource


Copyright (c) 2002 - Apache Software Foundation