org.apache.juddi.util
Class Loader
java.lang.Object
org.apache.juddi.util.Loader
public class Loader
- extends java.lang.Object
The idea for most of this code was taken from the Apache
(Jakarta) Log4j project: http://jakarta.apache.org/log4j
- Steve
- Author:
- Ceki Gülcü, anou_mana;
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Loader
public Loader()
getResourceAsStreamFromClass
public java.io.InputStream getResourceAsStreamFromClass(java.lang.String resource)
- Added for unittesting with maven
- Parameters:
resource
-
- Returns:
getResourceAsStream
public static java.io.InputStream getResourceAsStream(java.lang.String resource)
- Parameters:
resource
-
- Returns:
- InputStream to the named resource
getResource
public static java.net.URL getResource(java.lang.String resource)
- Parameters:
resource
- name
- Returns:
- URL to the named resource
getClassForName
public static java.lang.Class getClassForName(java.lang.String name)
throws java.lang.ClassNotFoundException,
java.lang.NoClassDefFoundError
- Parameters:
name
-
- Returns:
- The class object for the name given
- Throws:
java.lang.ClassNotFoundException
java.lang.NoClassDefFoundError
Copyright © 2004-2007. All Rights Reserved.