org.sapia.clazzy
Class CompositeClassLoaderBuilder
java.lang.Object
|
+--org.sapia.clazzy.CompositeClassLoaderBuilder
- public class CompositeClassLoaderBuilder
- extends Object
This class is a utility that parses a classpath and returns the corresponding classloader.
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2004 Sapia Open Source Software. All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the
license page at the Sapia OSS web site
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeClassLoaderBuilder
public CompositeClassLoaderBuilder()
parseClassPath
public static CompositeClassLoader parseClassPath(ClassLoader parent,
LoaderSelector selector,
String classpath)
- Builds a composite classloader, given a classpath (passed in as a string).
The classpath format is as follows:
some.jar:path/to/some/directory
or as follows:
some.jar;path/to/some/directory
Both ';' and ':' are properly understood as path delimiters.
In addition, any backslashes ('\') in file paths are replaced by the
system file separator (System.getProperty("file.separator")).
- Parameters:
parent - a parent ClassLoader.selector - a LoaderSelector.classpath - a classpath
- Returns:
- a
CompositeClassLoader.
Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.