Package org.apache.commons.discovery.jdk
Class JDK12Hooks
- java.lang.Object
-
- org.apache.commons.discovery.jdk.JDKHooks
-
- org.apache.commons.discovery.jdk.JDK12Hooks
-
public class JDK12Hooks extends JDKHooks
- Author:
- Richard A. Sitze
-
-
Constructor Summary
Constructors Constructor Description JDK12Hooks()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumerationgetResources(java.lang.ClassLoader loader, java.lang.String resourceName)Implement ClassLoader.getResources for JDK 1.2java.lang.ClassLoadergetSystemClassLoader()The system class loader is available for JDK 1.2 or later, if certain security conditions are met.java.lang.StringgetSystemProperty(java.lang.String propName)Get the system propertyjava.lang.ClassLoadergetThreadContextClassLoader()The thread context class loader is available for JDK 1.2 or later, if certain security conditions are met.static voidsetLog(org.apache.commons.logging.Log _log)Must be implemented to use DiscoveryLogFactory-
Methods inherited from class org.apache.commons.discovery.jdk.JDKHooks
getJDKHooks
-
-
-
-
Method Detail
-
setLog
public static void setLog(org.apache.commons.logging.Log _log)
Must be implemented to use DiscoveryLogFactory
-
getSystemProperty
public java.lang.String getSystemProperty(java.lang.String propName)
Get the system property- Specified by:
getSystemPropertyin classJDKHooks- 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:
getThreadContextClassLoaderin classJDKHooks- 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:
getSystemClassLoaderin classJDKHooks- 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.IOExceptionImplement ClassLoader.getResources for JDK 1.2- Specified by:
getResourcesin classJDKHooks- Throws:
java.io.IOException
-
-