org.objectweb.mobilitools.smi.lib
Class URLClassLoaderAdapter

java.lang.Object
  |
  +--org.objectweb.mobilitools.smi.lib.URLClassLoaderAdapter

public abstract class URLClassLoaderAdapter
extends java.lang.Object

MobiliTools $Name: $, $Id: URLClassLoaderAdapter.java,v 1.1.1.1 2003/03/28 14:48:06 dillense Exp $

Classloader factory providing URL classloaders.


Constructor Summary
URLClassLoaderAdapter()
           
 
Method Summary
static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, java.lang.String codebase, org.omg.CfMAF.AgentProfile profile, org.omg.CfMAF.MAFAgentSystem provider)
          Creates and a new URLClassLoader instance for the given codebase, if and and only if it does not already exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLClassLoaderAdapter

public URLClassLoaderAdapter()
Method Detail

getClassLoader

public static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent,
                                                   java.lang.String codebase,
                                                   org.omg.CfMAF.AgentProfile profile,
                                                   org.omg.CfMAF.MAFAgentSystem provider)
                                            throws java.net.MalformedURLException
Creates and a new URLClassLoader instance for the given codebase, if and and only if it does not already exist. Otherwise, the existing instance for the given codebase is re-used.
Parameters:
parent - parent classloader
codebase - codebase represented by URL strings separated with blanks
profile - ignored
provider - ignored
Returns:
the URLClassLoader for the given codebase