org.apache.juddi.util
Class Loader

java.lang.Object
  extended by 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;

Constructor Summary
Loader()
           
 
Method Summary
static java.lang.Class getClassForName(java.lang.String name)
           
static java.net.URL getResource(java.lang.String resource)
           
static java.io.InputStream getResourceAsStream(java.lang.String resource)
           
 java.io.InputStream getResourceAsStreamFromClass(java.lang.String resource)
          Added for unittesting with maven
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader()
Method Detail

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.