org.ow2.petals.se.jsr181.utils
Class Jsr181ClassLoaderUtils

java.lang.Object
  extended by org.ow2.petals.se.jsr181.utils.Jsr181ClassLoaderUtils

public class Jsr181ClassLoaderUtils
extends java.lang.Object

A class loader that puts all the JARs and the root directory in the class path.

This class is a partial copy of org.ow2.petals.se.talend.utils.TalendClassLoaderUtils, except we use a class loader from Axis2 libraries.

Author:
Vincent Zurczak - EBM WebSourcing

Nested Class Summary
static class Jsr181ClassLoaderUtils.Jsr181ComponentPrivilegedAction
          Create a new URL class loader.
 
Method Summary
static java.net.URLClassLoader createClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
          Return an URLClassLoader object, with all Jar contained in the given directory path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createClassLoader

public static java.net.URLClassLoader createClassLoader(java.net.URL[] urls,
                                                        java.lang.ClassLoader parent)
Return an URLClassLoader object, with all Jar contained in the given directory path.

Parameters:
urls - the URLs to load
parent - the parent class loader to use
Returns:
a classLoader


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.