Keel 2.1RC2

org.keel.core.classloader
Class URLClassLoaderPath

java.lang.Object
  extended byorg.keel.core.classloader.URLClassLoaderPath

public class URLClassLoaderPath
extends java.lang.Object

This is an utility class that allows the conversion of a typical classpath specification to an URL array as needed by the URLClassLoader class. During the conversion process, this class checks to see that the each service of the classpath is present and accessible.

Version:
$Revision: 1.1 $ $Date: 2003/12/30 01:29:35 $
Author:
Shash Chatterjee Created on Nov 5, 2002

Field Summary
protected  java.lang.String m_path
          The specified path to convert
 
Constructor Summary
URLClassLoaderPath(java.lang.String path)
          Cosntruct the helper object * @param path The classpath string, formatted as is normally expected for the java.class.path property or the CLASSPATH environment variable.
 
Method Summary
 java.net.URL[] getURLArray()
          COnvert the string so that each individual JAR or directory in the classpath is returned as a URL object * @return URL[] The array of JAR/directory resources * @throws Exception
 void setPath(java.lang.String path)
          Set the path string to be converted * @param path The classpath string, formatted as is normally expected for the java.class.path property or the CLASSPATH environment variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_path

protected java.lang.String m_path
The specified path to convert

Constructor Detail

URLClassLoaderPath

public URLClassLoaderPath(java.lang.String path)
Cosntruct the helper object * @param path The classpath string, formatted as is normally expected for the java.class.path property or the CLASSPATH environment variable.

Method Detail

setPath

public void setPath(java.lang.String path)
Set the path string to be converted * @param path The classpath string, formatted as is normally expected for the java.class.path property or the CLASSPATH environment variable.


getURLArray

public java.net.URL[] getURLArray()
                           throws java.lang.Exception
COnvert the string so that each individual JAR or directory in the classpath is returned as a URL object * @return URL[] The array of JAR/directory resources * @throws Exception

Throws:
java.lang.Exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.